DerivedCirceCodec

Derives a type-class instances for encoding and decoding JSON for any type implementing HasExtractor and HasBuilder type-class instances.

See https://circe.github.io/circe/codecs/custom-codecs.html.

WARN: we are not deriving io.circe.Codec, as it's an anti-pattern due to making code less generic. Also, due to Scala's subtyping it can lead to conflicts.

class Object
trait Matchable
class Any

Value members

Inherited methods

protected def jsonDecode[T, S](c: HCursor)(implicit builder: Aux[T, S], dec: Decoder[S]): Result[T]
Inherited from:
DerivedCirceDecoder
protected def jsonEncode[T, S](a: T)(implicit extractor: Aux[T, S], enc: Encoder[S]): Json
Inherited from:
DerivedCirceEncoder

Implicits

Inherited implicits

implicit def jsonDecoder[T, S](implicit builder: Aux[T, S], dec: Decoder[S]): Decoder[T]
Inherited from:
DerivedCirceDecoder
implicit def jsonEncoder[T, S](implicit extractor: Aux[T, S], enc: Encoder[S]): Encoder[T]
Inherited from:
DerivedCirceEncoder