PlayJsonSupport

com.github.pjfanning.pekkohttpplayjson.PlayJsonSupport
See thePlayJsonSupport companion trait

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

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class PlayJsonError(error: JsError) extends IllegalArgumentException

Attributes

Supertypes
trait Product
trait Equals
class IllegalArgumentException
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Inherited types

type SourceOf[A] = Source[A, _]

Attributes

Inherited from:
PlayJsonSupport

Value members

Inherited methods

def mediaTypes: Seq[WithFixedCharset]

Attributes

Inherited from:
PlayJsonSupport
def unmarshallerContentTypes: Seq[ContentTypeRange]

Attributes

Inherited from:
PlayJsonSupport

Implicits

Inherited implicits

implicit def fromByteStringUnmarshaller[A : Reads]: Unmarshaller[ByteString, A]

ByteString => A

ByteString => A

Type parameters

A

type to decode

Attributes

Returns

unmarshaller for any A value

Inherited from:
PlayJsonSupport
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

Attributes

Returns

marshaller for any A value

Inherited from:
PlayJsonSupport
implicit def sourceMarshaller[A](implicit writes: Writes[A], printer: JsValue => String, support: JsonEntityStreamingSupport): ToEntityMarshaller[SourceOf[A]]

SourceOf[A] => HTTP entity

SourceOf[A] => HTTP entity

Type parameters

A

type to encode

Attributes

Returns

marshaller for any SourceOf[A] value

Inherited from:
PlayJsonSupport
implicit def sourceUnmarshaller[A : Reads](implicit evidence$1: Reads[A], support: JsonEntityStreamingSupport): FromEntityUnmarshaller[SourceOf[A]]

HTTP entity => Source[A, _]

HTTP entity => Source[A, _]

Type parameters

A

type to decode

Attributes

Returns

unmarshaller for Source[A, _]

Inherited from:
PlayJsonSupport
implicit def unmarshaller[A : Reads]: FromEntityUnmarshaller[A]

HTTP entity => A

HTTP entity => A

Type parameters

A

type to decode

Attributes

Returns

unmarshaller for A

Inherited from:
PlayJsonSupport