Json Config
Properties
Link copied to clipboard
Removes JSON specification restriction on special floating-point values such as `NaN` and `Infinity` and enables their serialization and deserialization.
Link copied to clipboard
Enables structured objects to be serialized as map keys by changing serialized form of the map from JSON object (key-value pairs) to flat array like `[k1, v1, k2, v2]`.
Link copied to clipboard
Name of the class descriptor property for polymorphic serialization.
Link copied to clipboard
Enables coercing incorrect JSON values to the default property value in the following cases: 1.
Link copied to clipboard
Specifies whether default values of Kotlin properties should be encoded.
Link copied to clipboard
Specifies whether `null` values should be encoded for nullable properties and must be present in JSON object during decoding.
Link copied to clipboard
Specifies whether encounters of unknown properties in the input JSON should be ignored instead of throwing [SerializationException].
Link copied to clipboard
Specifies the
JsonNamingStrategy that should be used for all properties in classes for serialization and deserialization.Link copied to clipboard
Specifies whether resulting JSON should be pretty-printed.
Link copied to clipboard
Specifies indent string to use with [prettyPrint] mode
Link copied to clipboard
Specifies whether Json instance makes use of [JsonNames] annotation.
Link copied to clipboard
Switches polymorphic serialization to the default array format.