JsonDecoder

zio.json.JsonDecoder$
See theJsonDecoder companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class UnsafeJson(trace: List[JsonError]) extends Exception, NoStackTrace

Design note: we could require the position in the stream here to improve debugging messages. But the cost would be that the RetractReader would need to keep track and any wrappers would need to preserve the position. It may still be desirable to do this but at the moment it is not necessary.

Design note: we could require the position in the stream here to improve debugging messages. But the cost would be that the RetractReader would need to keep track and any wrappers would need to preserve the position. It may still be desirable to do this but at the moment it is not necessary.

Attributes

Supertypes
trait Product
trait Equals
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Types

Value members

Concrete methods

def apply[A](implicit a: JsonDecoder[A]): JsonDecoder[A]
def peekChar[A](partialFunction: PartialFunction[Char, JsonDecoder[A]]): JsonDecoder[A]
def suspend[A](decoder0: => JsonDecoder[A]): JsonDecoder[A]

Inherited methods

inline def derived[A : Of]: JsonDecoder[A]

Attributes

Inherited from:
JsonDecoderVersionSpecific
def keyValueChunk[K, A](implicit K: JsonFieldDecoder[K], A: JsonDecoder[A]): JsonDecoder[Chunk[(K, A)]]

Attributes

Inherited from:
DecoderLowPriority2 (hidden)

Concrete fields

val JsonError: JsonError.type

Implicits

Implicits

implicit val boolean: JsonDecoder[Boolean]
implicit val byte: JsonDecoder[Byte]
implicit val char: JsonDecoder[Char]
implicit val double: JsonDecoder[Double]
implicit def either[A, B](implicit A: JsonDecoder[A], B: JsonDecoder[B]): JsonDecoder[Either[A, B]]
implicit val float: JsonDecoder[Float]
implicit val int: JsonDecoder[Int]
implicit val long: JsonDecoder[Long]
implicit def option[A](implicit A: JsonDecoder[A]): JsonDecoder[Option[A]]
implicit val scalaBigDecimal: JsonDecoder[BigDecimal]
implicit val scalaBigInt: JsonDecoder[BigInt]
implicit val short: JsonDecoder[Short]
implicit val string: JsonDecoder[String]
implicit val symbol: JsonDecoder[Symbol]

Inherited implicits

implicit def array[A : ClassTag]: JsonDecoder[Array[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def chunk[A : JsonDecoder]: JsonDecoder[Chunk[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit val currency: JsonDecoder[Currency]

Attributes

Inherited from:
DecoderLowPriority3 (hidden)

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit val duration: JsonDecoder[Duration]

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit def fromCodec[A](implicit codec: JsonCodec[A]): JsonDecoder[A]

Attributes

Inherited from:
DecoderLowPriority4 (hidden)
implicit def hashMap[K : JsonFieldDecoder, V : JsonDecoder]: JsonDecoder[HashMap[K, V]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def hashSet[A : JsonDecoder]: JsonDecoder[HashSet[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def indexedSeq[A : JsonDecoder]: JsonDecoder[IndexedSeq[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit val instant: JsonDecoder[Instant]

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit def iterable[A : JsonDecoder]: JsonDecoder[Iterable[A]]

Attributes

Inherited from:
DecoderLowPriority2 (hidden)
implicit def linearSeq[A : JsonDecoder]: JsonDecoder[LinearSeq[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def list[A : JsonDecoder]: JsonDecoder[List[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def listSet[A : JsonDecoder]: JsonDecoder[ListSet[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)

Attributes

Inherited from:
DecoderLowPriority3 (hidden)

Attributes

Inherited from:
DecoderLowPriority3 (hidden)

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit def map[K : JsonFieldDecoder, V : JsonDecoder]: JsonDecoder[Map[K, V]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit val month: JsonDecoder[Month]

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit val monthDay: JsonDecoder[MonthDay]

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit def mutableMap[K : JsonFieldDecoder, V : JsonDecoder]: JsonDecoder[Map[K, V]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)

Attributes

Inherited from:
DecoderLowPriority1 (hidden)

Attributes

Inherited from:
DecoderLowPriority3 (hidden)

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit val period: JsonDecoder[Period]

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit def seq[A : JsonDecoder]: JsonDecoder[Seq[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def set[A : JsonDecoder]: JsonDecoder[Set[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def sortedMap[K : Ordering, V : JsonDecoder]: JsonDecoder[SortedMap[K, V]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def sortedSet[A : JsonDecoder]: JsonDecoder[SortedSet[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def treeSet[A : Ordering]: JsonDecoder[TreeSet[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit def tuple1[A1](implicit A1: JsonDecoder[A1]): JsonDecoder[(A1)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple10[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple11[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple12[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple13[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple14[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13], A14: JsonDecoder[A14]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple15[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13], A14: JsonDecoder[A14], A15: JsonDecoder[A15]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple16[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13], A14: JsonDecoder[A14], A15: JsonDecoder[A15], A16: JsonDecoder[A16]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple17[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13], A14: JsonDecoder[A14], A15: JsonDecoder[A15], A16: JsonDecoder[A16], A17: JsonDecoder[A17]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple18[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13], A14: JsonDecoder[A14], A15: JsonDecoder[A15], A16: JsonDecoder[A16], A17: JsonDecoder[A17], A18: JsonDecoder[A18]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple19[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13], A14: JsonDecoder[A14], A15: JsonDecoder[A15], A16: JsonDecoder[A16], A17: JsonDecoder[A17], A18: JsonDecoder[A18], A19: JsonDecoder[A19]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple2[A1, A2](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2]): JsonDecoder[(A1, A2)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple20[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13], A14: JsonDecoder[A14], A15: JsonDecoder[A15], A16: JsonDecoder[A16], A17: JsonDecoder[A17], A18: JsonDecoder[A18], A19: JsonDecoder[A19], A20: JsonDecoder[A20]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple21[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13], A14: JsonDecoder[A14], A15: JsonDecoder[A15], A16: JsonDecoder[A16], A17: JsonDecoder[A17], A18: JsonDecoder[A18], A19: JsonDecoder[A19], A20: JsonDecoder[A20], A21: JsonDecoder[A21]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple22[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9], A10: JsonDecoder[A10], A11: JsonDecoder[A11], A12: JsonDecoder[A12], A13: JsonDecoder[A13], A14: JsonDecoder[A14], A15: JsonDecoder[A15], A16: JsonDecoder[A16], A17: JsonDecoder[A17], A18: JsonDecoder[A18], A19: JsonDecoder[A19], A20: JsonDecoder[A20], A21: JsonDecoder[A21], A22: JsonDecoder[A22]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple3[A1, A2, A3](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3]): JsonDecoder[(A1, A2, A3)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple4[A1, A2, A3, A4](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4]): JsonDecoder[(A1, A2, A3, A4)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple5[A1, A2, A3, A4, A5](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5]): JsonDecoder[(A1, A2, A3, A4, A5)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple6[A1, A2, A3, A4, A5, A6](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6]): JsonDecoder[(A1, A2, A3, A4, A5, A6)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple7[A1, A2, A3, A4, A5, A6, A7](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple8[A1, A2, A3, A4, A5, A6, A7, A8](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit def tuple9[A1, A2, A3, A4, A5, A6, A7, A8, A9](implicit A1: JsonDecoder[A1], A2: JsonDecoder[A2], A3: JsonDecoder[A3], A4: JsonDecoder[A4], A5: JsonDecoder[A5], A6: JsonDecoder[A6], A7: JsonDecoder[A7], A8: JsonDecoder[A8], A9: JsonDecoder[A9]): JsonDecoder[(A1, A2, A3, A4, A5, A6, A7, A8, A9)]

Attributes

Inherited from:
GeneratedTupleDecoders (hidden)
implicit val uuid: JsonDecoder[UUID]

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit def vector[A : JsonDecoder]: JsonDecoder[Vector[A]]

Attributes

Inherited from:
DecoderLowPriority1 (hidden)
implicit val year: JsonDecoder[Year]

Attributes

Inherited from:
DecoderLowPriority3 (hidden)

Attributes

Inherited from:
DecoderLowPriority3 (hidden)
implicit val zoneId: JsonDecoder[ZoneId]

Attributes

Inherited from:
DecoderLowPriority3 (hidden)

Attributes

Inherited from:
DecoderLowPriority3 (hidden)

Attributes

Inherited from:
DecoderLowPriority3 (hidden)