JsonCodec
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JsonCodec.type
Members list
Type members
Classlikes
Configuration for the JSON codec. The configurations are overruled by the annotations that configure the same behavior.
Configuration for the JSON codec. The configurations are overruled by the annotations that configure the same behavior.
Value parameters
- discriminatorSettings
-
set up how to handle discriminators
- explicitEmptyCollections
-
whether to encode empty collections as
[]or omit the field and decode the field when it is missing as an empty collection or fail - explicitNulls
-
whether to encode empty Options as
nullor omit the field and decode the field when it is missing to None or fail - fieldNameFormat
-
format for the field names
- rejectExtraFields
-
whether to reject extra fields during decoding
- treatStreamsAsArrays
-
whether to treat streams as arrays when encoding/decoding
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
- Self type
-
Configuration.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
DiscriminatorSetting.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
When disabled for encoding, matching fields will be omitted from the JSON. When disabled for decoding, missing fields will be decoded as the default value.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JsonDecoder.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JsonEncoder.type
Types
Value members
Concrete methods
Deprecated methods
Attributes
- Deprecated
-
[Since version 1.6.7]Use Configuration based method instead
Attributes
- Deprecated
-
[Since version 1.6.7]Use Configuration based method instead
Attributes
- Deprecated
-
[Since version 1.6.7]Use Configuration based method instead