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
- Self type
-
Json4sSupport.type
Members list
Type members
Classlikes
object ShouldWritePretty
Attributes
- Companion
- class
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ShouldWritePretty.type
Inherited types
Attributes
- Inherited from:
- Json4sSupport
Value members
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
In this article