UpickleJsonCodec

automorph.codec.json.UpickleJsonCodec
See theUpickleJsonCodec companion object

uPickle JSON message codec plugin.

Type parameters

Custom

customized Upickle reader and writer implicits instance type

Value parameters

custom

customized Upickle reader and writer implicits instance

Attributes

Constructor

Creates an uPickle 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]): Value

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: Value): 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: Value): 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: Value): 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:
UpickleJsonMeta (hidden)
inline override def encode[T](value: T): Value

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:
UpickleJsonMeta (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