package circe
- Alphabetic
- Public
- All
Type Members
-
abstract
class
DiscriminatorDependentCodec[T] extends ObjectEncoder[T] with Decoder[T]
Adds a discriminator for encoding multiple algebraic sub types into the same json.
Adds a discriminator for encoding multiple algebraic sub types into the same json. Similar to https://circe.github.io/circe/codecs/adt.html but we can choose the discriminator and values by our self, to make JSON spec simpler.
This is for circe JSON, not Play JSON.
-
class
EnumDiscriminatorCodec[T] extends Encoder[T] with Decoder[T]
Encodes the values of a trivial disjunct enum hierarchy into a Json string.
Encodes the values of a trivial disjunct enum hierarchy into a Json string. Note: is using circe json.
TODO: Circe's KeyDecoder and KeyEncoder somehow have a similar meaning however they are abstract classes so we cannot easily mix them together. Maybe it's a good idea to clean up.
-
abstract
class
TrialDependentCodec[T] extends ObjectEncoder[T] with Decoder[T]
A JSON codec which is built from other codecs and just tries them out during decoding.
A JSON codec which is built from other codecs and just tries them out during decoding. Similar to DiscriminatorDependentCodec but without the kind type as they are all distinct.
Value Members
-
object
CirceJson
Helper for Circe Json.
- object EnumDiscriminatorCodec extends Serializable
-
object
ExtraCirceCodecs
Extra implicit codecs for Circe JSON.
-
object
MessagePackJsonSupport
Helper for reading/writing JSON in MessagePack.