Derive a decoder for a sealed trait hierarchy made up of case objects.
Derive a decoder for a sealed trait hierarchy made up of case objects.
Note that this differs from the usual derived decoder in that the leaves of the ADT are represented as JSON strings.
Derive an encoder for a sealed trait hierarchy made up of case objects.
Derive an encoder for a sealed trait hierarchy made up of case objects.
Note that this differs from the usual derived encoder in that the leaves of the ADT are represented as JSON strings.
Derive a decoder for a value class.
Derive an encoder for a value class.
Semi-automatic codec derivation.
This object provides helpers for creating io.circe.Decoder and io.circe.ObjectEncoder instances for case classes, "incomplete" case classes, sealed trait hierarchies, etc.
Typical usage will look like the following: