JsonDecoderInstances
Shared provider of JSON decoder instances parameterized by JsonConfig.
Subclassed by JsonDecoder (default config) and JsonDecoder.configured.Decoders (custom config).
Attributes
- Source
- JsonDecoder.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Decodersobject JsonDecoder
Members list
Value members
Abstract methods
Attributes
- Source
- JsonDecoder.scala
Givens
Givens
Decodes BigDecimal from JString or JNumber depending on config.
Decodes BigInt from JString or JNumber depending on config.
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
- 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
- Source
- JsonDecoder.scala
Decodes JNumber to Double.
Decodes Instant from ISO-8601 JString.
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
- Source
- JsonDecoder.scala
Decodes Option, treating JNull as None.
Decodes JString to String.
Decodes JArray to Vector.