Decoders
Factory for decoder bundles bound to a specific JsonConfig.
Use this to override default behavior like field naming or null handling.
val cfg = JsonConfig.default.copy(treatAbsentAsNull = false)
given JsonDecoder.configured.Decoders = JsonDecoder.configured(cfg)
Attributes
- Source
- JsonDecoder.scala
- Graph
-
- Supertypes
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Concrete fields
Attributes
- Source
- JsonDecoder.scala
Givens
Inherited givens
Decodes BigDecimal from JString or JNumber depending on config.
Decodes BigDecimal from JString or JNumber depending on config.
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Decodes BigInt from JString or JNumber depending on config.
Decodes BigInt from JString or JNumber depending on config.
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Decodes JBool to Boolean.
Derives a decoder for product types (case classes) by decoding each field from a JObject.
Derives a decoder for product types (case classes) by decoding each field from a JObject.
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Derives a decoder for sum types (sealed traits/enums) using wrapped-by-type-key discriminator.
Derives a decoder for sum types (sealed traits/enums) using wrapped-by-type-key discriminator.
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Decodes JNumber to Double.
Decodes Instant from ISO-8601 JString.
Decodes Instant from ISO-8601 JString.
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Decodes JNumber to Int.
Decodes JArray to List.
Decodes JNumber to Long.
Decodes JObject to Map by converting field names with JsonKeyCodec.
Decodes JObject to Map by converting field names with JsonKeyCodec.
Fails on key parse errors or duplicate decoded keys after normalization.
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Decodes Option, treating JNull as None.
Decodes Option, treating JNull as None.
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Decodes JString to String.
Decodes JArray to Vector.