JsonDecoder

oxygen.json.JsonDecoder
See theJsonDecoder companion trait
object JsonDecoder extends WithInstances[JsonDecoder], LowPriority1

Attributes

Companion
trait
Graph
Supertypes
trait LowPriority1
trait WithInstances[JsonDecoder]
trait Derivable[JsonDecoder]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

object AnyJsonDecoder extends JsonDecoder[Json]

Attributes

Supertypes
trait JsonDecoder[Json]
class Object
trait Matchable
class Any
Self type
object BigDecimalDecoder extends JsonDecoder[BigDecimal]

Attributes

Supertypes
trait JsonDecoder[BigDecimal]
class Object
trait Matchable
class Any
Self type
object BooleanDecoder extends JsonDecoder[Boolean]

Attributes

Supertypes
trait JsonDecoder[Boolean]
class Object
trait Matchable
class Any
Self type
final case class ContiguousDecoder[A](decoder: JsonDecoder[A]) extends JsonDecoder[Contiguous[A]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[Contiguous[A]]
class Object
trait Matchable
class Any
Show all
final case class JsonSubtypeDecoder[A <: Json](filter: Json => Option[A], expTpe: Type) extends JsonDecoder[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[A]
class Object
trait Matchable
class Any
Show all
final case class MapDecoder[K, V](k: JsonFieldDecoder[K], v: JsonDecoder[V]) extends JsonDecoder[Map[K, V]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[Map[K, V]]
class Object
trait Matchable
class Any
Show all
final case class MapJsonInput[A](decoder: JsonDecoder[A], f: Json => Json) extends JsonDecoder[A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[A]
class Object
trait Matchable
class Any
Show all
final case class Mapped[A, B](decoder: JsonDecoder[A], f: A => B) extends JsonDecoder[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[B]
class Object
trait Matchable
class Any
Show all
final case class MappedOrFail[A, B](decoder: JsonDecoder[A], f: A => Either[String, B]) extends JsonDecoder[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[B]
class Object
trait Matchable
class Any
Show all
final case class OptionDecoder[A](decoder: JsonDecoder[A]) extends JsonDecoder[Option[A]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[Option[A]]
class Object
trait Matchable
class Any
Show all
final case class OrElse[A, B >: A](a: JsonDecoder[A], b: JsonDecoder[B]) extends JsonDecoder[B]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[B]
class Object
trait Matchable
class Any
Show all
final case class SpecifiedDecoder[A](decoder: JsonDecoder[A]) extends JsonDecoder[Specified[A]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonDecoder[Specified[A]]
class Object
trait Matchable
class Any
Show all
object StringDecoder extends JsonDecoder[String]

Attributes

Supertypes
trait JsonDecoder[String]
class Object
trait Matchable
class Any
Self type
object TupleDecoder

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait TupleDecoder[A <: Tuple] extends JsonDecoder[A]

Attributes

Companion
object
Supertypes
trait JsonDecoder[A]
class Object
trait Matchable
class Any
Known subtypes
class Append[A, B]
object Empty

Value members

Concrete methods

inline def apply[A](using ev: JsonDecoder[A]): JsonDecoder[A]
inline def derived[A]: JsonDecoder[A]

Inherited methods

final override protected def internalDeriveProduct[Q <: Quotes, A](k0: K0[Q])(g: k0.ProductGeneric[A])(using quotes: Q, aTpe: Type[A], tTpe: Type[JsonDecoder]): Expr[JsonDecoder[A]]

Attributes

Definition Classes
WithInstances -> Derivable
Inherited from:
WithInstances
final override protected def internalDeriveSum[Q <: Quotes, A](k0: K0[Q])(g: k0.SumGeneric[A])(using quotes: Q, aTpe: Type[A], tTpe: Type[JsonDecoder]): Expr[JsonDecoder[A]]

Attributes

Definition Classes
WithInstances -> Derivable
Inherited from:
WithInstances

Givens

Givens

given bigDecimal: JsonDecoder[BigDecimal]
given bigInt: JsonDecoder[BigInt]
given boolean: JsonDecoder[Boolean]
given byte: JsonDecoder[Byte]
given contiguous[A](using decoder: JsonDecoder[A]): JsonDecoder[Contiguous[A]]
given double: JsonDecoder[Double]
given duration: JsonDecoder[Duration]
given enum[A](using ec: Companion[A], tt: TypeTag[A]): JsonDecoder[A]
given float: JsonDecoder[Float]
given instant: JsonDecoder[Instant]
given int: JsonDecoder[Int]
given jsonNull: JsonDecoder[Null.type]
given localDate: JsonDecoder[LocalDate]
given localDateTime: JsonDecoder[LocalDateTime]
given localTime: JsonDecoder[LocalTime]
given long: JsonDecoder[Long]
given map[K, V](using k: JsonFieldDecoder[K], v: JsonDecoder[V]): JsonDecoder[Map[K, V]]
given month: JsonDecoder[Month]
given monthDay: JsonDecoder[MonthDay]
given offsetDateTime: JsonDecoder[OffsetDateTime]
given offsetTime: JsonDecoder[OffsetTime]
given option[A](using decoder: JsonDecoder[A]): JsonDecoder[Option[A]]
given period: JsonDecoder[Period]
given seq[S[_], A](using seqOps: SeqOps[S], decoder: JsonDecoder[A]): JsonDecoder[S[A]]
given short: JsonDecoder[Short]
given specified[A](using decoder: JsonDecoder[A]): JsonDecoder[Specified[A]]
given string: JsonDecoder[String]
given timeZone: JsonDecoder[TimeZone]
given tuple[A <: Tuple](using dec: TupleDecoder[A]): JsonDecoder[A]
given uuid: JsonDecoder[UUID]
given year: JsonDecoder[Year]
given yearMonth: JsonDecoder[YearMonth]
given zoneId: JsonDecoder[ZoneId]
given zoneOffset: JsonDecoder[ZoneOffset]
given zonedDateTime: JsonDecoder[ZonedDateTime]

Inherited givens

given fromJsonCodec[A](using codec: JsonCodec[A]): JsonDecoder[A]

Attributes

Inherited from:
LowPriority1
given nonEmptySeq[S1[_], S2[_], A](using ne: Aux[S1, S2])(using decoder: JsonDecoder[S1[A]]): JsonDecoder[S2[A]]

Attributes

Inherited from:
LowPriority1