CirceJsonCodec

automorph.codec.json.CirceJsonCodec
See theCirceJsonCodec companion object
final case class CirceJsonCodec()

Circe JSON message codec plugin.

Attributes

Constructor

Creates a Circe codec plugin using JSON as message format.

See also
Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def deserialize(data: Array[Byte]): Json

Deserializes a node from binary data.

Deserializes a node from binary data.

Value parameters

data

binary data in the specific codec

Attributes

Returns

node

Definition Classes
override def serialize(node: Json): Array[Byte]

Serializes a node as binary data.

Serializes a node as binary data.

Value parameters

node

node

Attributes

Returns

binary data in the specific codec

Definition Classes
override def text(node: Json): String

Formats a node as human-readable text.

Formats a node as human-readable text.

Value parameters

node

node

Attributes

Returns

node in human-readable textual form

Definition Classes

Inherited methods

inline override def decode[T](node: Json): T

Decodes a value from a message codec node.

Decodes a value from a message codec node.

Type parameters

T

value type

Value parameters

node

message codec node

Attributes

Returns

value of the specified type

Definition Classes
Inherited from:
CirceJsonMeta (hidden)
inline override def encode[T](value: T): Json

Encodes a value as a message codec node.

Encodes a value as a message codec node.

Type parameters

T

value type

Value parameters

value

value of given type

Attributes

Returns

message codec node

Definition Classes
Inherited from:
CirceJsonMeta (hidden)

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

override val mediaType: String

Message format media (MIME) type.

Message format media (MIME) type.

Attributes