summaryrefslogtreecommitdiff
path: root/docs/custom_serializers.md
diff options
context:
space:
mode:
authorLeonid Startsev <sandwwraith@users.noreply.github.com>2018-11-19 15:54:34 +0300
committerGitHub <noreply@github.com>2018-11-19 15:54:34 +0300
commitce7a440a759d4ae34f2b41df161756c8ef15401a (patch)
treeb0a4080fd27af73c1c698808a547155236a14491 /docs/custom_serializers.md
parent62f4a4f4898ec5957c72031491e3b1455ba7fdbb (diff)
parent34307d7af1bec423f19d1a7ae391c5ee640ee14d (diff)
downloadkotlinx.serialization-ce7a440a759d4ae34f2b41df161756c8ef15401a.tar.gz
Merge pull request #262 from BenWoodworth/master
Rename classes to follow Kotlin's naming conventions
Diffstat (limited to 'docs/custom_serializers.md')
-rw-r--r--docs/custom_serializers.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/custom_serializers.md b/docs/custom_serializers.md
index b769eada..d1260110 100644
--- a/docs/custom_serializers.md
+++ b/docs/custom_serializers.md
@@ -214,8 +214,8 @@ val simpleModule = SimpleModule(Payload::class, PayloadSerializer)
// MapModule and CompositeModule are also available
val binaryModule = SimpleModule(Payload::class, BinaryPayloadSerializer)
-val json1 = JSON().apply { install(simpleModule) }
-val json2 = JSON().apply { install(binaryModule) }
+val json1 = Json().apply { install(simpleModule) }
+val json2 = Json().apply { install(binaryModule) }
// in json1, Payload would be serialized with PayloadSerializer,
// in json2, Payload would be serialized with BinaryPayloadSerializer