Attributes
- Companion
- trait
- Source
- JsonDecoder.scala
- Graph
-
- Supertypes
- Self type
-
JsonDecoder.type
Members list
Type members
Classlikes
Configuration-bound decoder bundles.
Configuration-bound decoder bundles.
Attributes
- Source
- JsonDecoder.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
configured.type
Value members
Concrete methods
Summons a decoder instance for type A.
Summons a decoder instance for type A.
val stringDec = JsonDecoder[String]
Attributes
- Source
- JsonDecoder.scala
Derives a decoder for type A using Scala 3 mirrors.
Derives a decoder for type A using Scala 3 mirrors.
Supports both product types (case classes) and sum types (sealed traits). Enabled via derives JsonDecoder clause.
case class Point(x: Int, y: Int) derives JsonDecoder
sealed trait Color derives JsonDecoder
case object Red extends Color
case object Blue extends Color
Attributes
- Source
- JsonDecoder.scala
Inherited methods
Attributes
- Inherited from:
- JsonDecoderInstances
- Source
- JsonDecoder.scala
Attributes
- Inherited from:
- JsonDecoderInstances
- 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.