spray.json
Type members
Classlikes
Provides additional JsonFormats and helpers
Provides additional JsonFormats and helpers
Provides the JsonFormats for the most important Scala types.
Provides the JsonFormats for the most important Scala types.
A JsonPrinter that produces compact JSON source without any superfluous whitespace.
A JsonPrinter that produces compact JSON source without any superfluous whitespace.
- Companion
- object
Provides all the predefined JsonFormats.
Provides all the predefined JsonFormats.
- Companion
- object
The general type of a JSON AST node.
The general type of a JSON AST node.
Provides the JSON deserialization and serialization for type T.
Provides the JSON deserialization and serialization for type T.
Fast, no-dependency parser for JSON as defined by http://tools.ietf.org/html/rfc4627.
Fast, no-dependency parser for JSON as defined by http://tools.ietf.org/html/rfc4627.
- Companion
- class
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)
- Companion
- object
A JsonPrinter serializes a JSON AST to a String.
A JsonPrinter serializes a JSON AST to a String.
- Companion
- object
Provides the JSON deserialization for type T.
Provides the JSON deserialization for type T.
- Companion
- object
Provides the JSON serialization for type T.
Provides the JSON serialization for type T.
- Companion
- object
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.)
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.
A JsonPrinter that produces a nicely readable JSON source.
- Companion
- object
Provides the helpers for constructing custom JsonFormat implementations for types implementing the Product trait (especially case classes)
Provides the helpers for constructing custom JsonFormat implementations for types implementing the Product trait (especially case classes)
- Companion
- object
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 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. either a JSON array or a JSON object.
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. either a JSON array or a JSON object.
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.
Provides the JsonFormats for the non-collection standard types.