JsonTaggedAdtEncoder

org.latestbit.circe.adt.codec.impl.JsonTaggedAdtEncoder
See theJsonTaggedAdtEncoder companion object
sealed trait JsonTaggedAdtEncoder[T] extends AsObject[T]

Attributes

Companion
object
Graph
Supertypes
trait AsObject[T]
trait AsRoot[T]
trait Encoder[T]
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Inherited methods

final def apply(a: T): Json

Convert a value to JSON.

Convert a value to JSON.

Attributes

Inherited from:
AsObject
final def contramap[B](f: B => T): Encoder[B]

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Create a new Encoder by applying a function to a value of type B before encoding as an A.

Attributes

Inherited from:
Encoder
final def contramapObject[B](f: B => T): AsObject[B]

Create a new Encoder.AsObject by applying a function to a value of type B before encoding as an A.

Create a new Encoder.AsObject by applying a function to a value of type B before encoding as an A.

Attributes

Inherited from:
AsObject
def encodeObject(a: T): JsonObject

Convert a value to a JSON object.

Convert a value to a JSON object.

Attributes

Inherited from:
AsObject
final def mapJson(f: Json => Json): Encoder[A]

Create a new Encoder by applying a function to the output of this one.

Create a new Encoder by applying a function to the output of this one.

Attributes

Inherited from:
Encoder
final def mapJsonObject(f: JsonObject => JsonObject): AsObject[A]

Create a new Encoder.AsObject by applying a function to the output of this one.

Create a new Encoder.AsObject by applying a function to the output of this one.

Attributes

Inherited from:
AsObject