JsoniterScalaSupport

com.github.pjfanning.pekkohttpjsoniterscala.JsoniterScalaSupport
See theJsoniterScalaSupport companion trait

Automatic to and from JSON marshalling/unmarshalling using an in-scope instance of JsonValueCodec

Attributes

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

Members list

Type members

Inherited types

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

Attributes

Inherited from:
JsoniterScalaSupport

Value members

Inherited methods

def mediaTypes: Seq[WithFixedCharset]

Attributes

Inherited from:
JsoniterScalaSupport
def unmarshallerContentTypes: Seq[ContentTypeRange]

Attributes

Inherited from:
JsoniterScalaSupport

Concrete fields

val defaultReaderConfig: ReaderConfig
val defaultWriterConfig: WriterConfig

Implicits

Inherited implicits

implicit def fromByteStringUnmarshaller[A](implicit codec: JsonValueCodec[A], config: ReaderConfig): Unmarshaller[ByteString, A]

ByteString => A

ByteString => A

Type parameters

A

type to decode

Attributes

Returns

unmarshaller for any A value

Inherited from:
JsoniterScalaSupport
implicit def marshaller[A](implicit codec: JsonValueCodec[A], config: WriterConfig): ToEntityMarshaller[A]

A => HTTP entity

A => HTTP entity

Attributes

Inherited from:
JsoniterScalaSupport
implicit def sourceMarshaller[A](implicit codec: JsonValueCodec[A], config: WriterConfig, 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:
JsoniterScalaSupport
implicit def sourceUnmarshaller[A : JsonValueCodec](implicit evidence$1: JsonValueCodec[A], support: JsonEntityStreamingSupport, config: ReaderConfig): 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:
JsoniterScalaSupport
implicit def unmarshaller[A](implicit codec: JsonValueCodec[A], config: ReaderConfig): FromEntityUnmarshaller[A]

HTTP entity => A

HTTP entity => A

Attributes

Inherited from:
JsoniterScalaSupport