@@ -79,7 +79,7 @@ This can be useful when you want to use some custom external serializer
79
79
or to define different serializers for different formats.
80
80
The latter allows polymorphic serialization and deserialization using runtime class information
81
81
and recorded name of a class.
82
- Consult theirs documentation for details. Polymorphic serialization is explained in details [ here] ( polymorphism.md ) .
82
+ Consult their documentation for details. Polymorphic serialization is explained in details [ here] ( polymorphism.md ) .
83
83
84
84
Both use serial modules system, which is explained [ here] ( custom_serializers.md#registering-and-context ) .
85
85
@@ -92,13 +92,13 @@ Runtime library provides three ready-to use formats: JSON, CBOR and ProtoBuf.
92
92
JSON format represented by ` Json ` class from ` kotlinx.serialization.json ` package.
93
93
It is configurable via ` JsonConfiguration ` class, which has following parameters:
94
94
95
- * encodeDefaults - set this to false to omit writing optional properties if they are equal to theirs default values.
95
+ * encodeDefaults - set this to false to omit writing optional properties if they are equal to their default values.
96
96
* strictMode - Prohibits unknown keys when parsing JSON. Prohibits NaN and Infinity float values when serializing JSON. Enabled by default.
97
97
* unquoted - means that all field names and other objects (where it's possible) would not be wrapped in quotes. Useful for debugging.
98
98
* prettyPrint - classic pretty-printed multiline JSON.
99
99
* indent - size of indent, applicable if parameter above is true.
100
100
* useArrayPolymorphism – switches to writing polymorphic values in ` [className, object] ` format. Disabled by default.
101
- * classDiscriminator – name of the class descriptor property in polymorphic serialization
101
+ * classDiscriminator – name of the class descriptor property in polymorphic serialization.
102
102
103
103
It also has two pre-defined sets of parameters: ` Default ` and ` Stable ` .
104
104
` Default ` provides recommended and sane configuration, however, due to a library evolution,
0 commit comments