Provides additional JsonFormats and helpers
Provides the JsonFormats for the most important Scala types.
A JsonPrinter that produces compact JSON source without any superfluous whitespace.
Provides all the predefined JsonFormats.
A JSON array.
JSON Booleans.
A JSON number.
A JSON object.
A JSON string.
The general type of a JSON AST node.
Provides the JSON deserialization and serialization for type T.
Allows to customize settings for the JSON parser.
Allows to customize settings for the JSON parser.
Use it like this:
val customSettings =
JsonParserSettings.default
.withMaxDepth(100)
.withMaxNumberCharacters(20)
JsonParser(jsonString, customSettings)
// or
jsonString.parseJson(customSettings)
A JsonPrinter serializes a JSON AST to a String.
Provides the JSON deserialization for type T.
Provides the JSON deserialization for type T.
Provides the JSON serialization for type T.
Provides the JSON serialization for type T.
This trait supplies an alternative rendering mode for optional case class members.
This trait supplies an alternative rendering mode for optional case class members.
Normally optional members that are undefined (None
) are not rendered at all.
By mixing in this trait into your custom JsonProtocol you can enforce the rendering of undefined members as null
.
(Note that this only affect JSON writing, spray-json will always read missing optional members as well as null
optional members as None
.)
A JsonPrinter that produces a nicely readable JSON source.
Provides the helpers for constructing custom JsonFormat implementations for types implementing the Product trait (especially case classes)
A special JsonFormat signaling that the format produces a legal JSON root object, i.e.
A special JsonFormat signaling that the format produces a legal JSON root object, i.e. either a JSON array or a JSON object.
A special JsonReader capable of reading a legal JSON root object, i.e.
A special JsonReader capable of reading a legal JSON root object, i.e. either a JSON array or a JSON object.
A special JsonWriter capable of writing a legal JSON root object, i.e.
A special JsonWriter capable of writing a legal JSON root object, i.e. either a JSON array or a JSON object.
Provides the JsonFormats for the non-collection standard types.
The representation for JSON null.
Fast, no-dependency parser for JSON as defined by http://tools.ietf.org/html/rfc4627.