PlayJsonSupportForPekkoHttp

Automatic to and from JSON marshalling/unmarshalling using an in-scope play-json protocol.

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def unmarshallerContentTypes: Seq[ContentTypeRange]

Implicits

Implicits

implicit def marshaller[A](implicit writes: Writes[A], printer: JsValue => String): ToEntityMarshaller[A]

A => HTTP entity

A => HTTP entity

Type parameters:
A

type to encode

Returns:

marshaller for any A value

implicit def unmarshaller[A : Reads]: FromEntityUnmarshaller[A]

HTTP entity => A

HTTP entity => A

Type parameters:
A

type to decode

Returns:

unmarshaller for A