Json4sSupport

com.github.pjfanning.pekkohttpjson4s.Json4sSupport
See theJson4sSupport companion trait
object Json4sSupport extends Json4sSupport

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

Pretty printing is enabled if an implicit Json4sSupport.ShouldWritePretty.True is in scope.

Attributes

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

Members list

Type members

Classlikes

sealed abstract class ShouldWritePretty

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object False
object True

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Inherited types

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

Attributes

Inherited from:
Json4sSupport

Value members

Inherited methods

def mediaTypes: Seq[WithFixedCharset]

Attributes

Inherited from:
Json4sSupport
def unmarshallerContentTypes: Seq[ContentTypeRange]

Attributes

Inherited from:
Json4sSupport

Implicits

Inherited implicits

implicit def fromByteStringUnmarshaller[A : Manifest](implicit evidence$1: Manifest[A], s: Serialization, formats: Formats): Unmarshaller[ByteString, A]

ByteString => A

ByteString => A

Type parameters

A

type to decode

Attributes

Returns

unmarshaller for any A value

Inherited from:
Json4sSupport
implicit def marshaller[A <: AnyRef](implicit serialization: Serialization, formats: Formats, shouldWritePretty: ShouldWritePretty): ToEntityMarshaller[A]

A => HTTP entity

A => HTTP entity

Type parameters

A

type to encode, must be upper bounded by AnyRef

Attributes

Returns

marshaller for any A value

Inherited from:
Json4sSupport
implicit def sourceMarshaller[A <: AnyRef](implicit serialization: Serialization, formats: Formats, shouldWritePretty: ShouldWritePretty, 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:
Json4sSupport
implicit def sourceUnmarshaller[A : Manifest](implicit evidence$1: Manifest[A], support: JsonEntityStreamingSupport, serialization: Serialization, formats: Formats): 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:
Json4sSupport
implicit def unmarshaller[A : Manifest](implicit evidence$1: Manifest[A], serialization: Serialization, formats: Formats): FromEntityUnmarshaller[A]

HTTP entity => A

HTTP entity => A

Type parameters

A

type to decode

Attributes

Returns

unmarshaller for A

Inherited from:
Json4sSupport