Package

spray

json

Permalink

package json

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. json
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AdditionalFormats extends AnyRef

    Permalink

    Provides additional JsonFormats and helpers

  2. trait BasicFormats extends AnyRef

    Permalink

    Provides the JsonFormats for the most important Scala types.

  3. trait CollectionFormats extends AnyRef

    Permalink
  4. trait CompactPrinter extends JsonPrinter

    Permalink

    A JsonPrinter that produces compact JSON source without any superfluous whitespace.

  5. trait DefaultJsonProtocol extends BasicFormats with StandardFormats with CollectionFormats with ProductFormats with AdditionalFormats

    Permalink

    Provides all the predefined JsonFormats.

  6. case class DeserializationException(msg: String, cause: Throwable = null, fieldNames: List[String] = Nil) extends RuntimeException with Product with Serializable

    Permalink
  7. case class JsArray(elements: Vector[JsValue]) extends JsValue with Product with Serializable

    Permalink

    A JSON array.

  8. sealed abstract class JsBoolean extends JsValue

    Permalink

    JSON Booleans.

  9. type JsField = (String, JsValue)

    Permalink
  10. case class JsNumber(value: BigDecimal) extends JsValue with Product with Serializable

    Permalink

    A JSON number.

  11. case class JsObject(fields: Map[String, JsValue]) extends JsValue with Product with Serializable

    Permalink

    A JSON object.

  12. case class JsString(value: String) extends JsValue with Product with Serializable

    Permalink

    A JSON string.

  13. sealed abstract class JsValue extends AnyRef

    Permalink

    The general type of a JSON AST node.

  14. trait JsonFormat[T] extends JsonReader[T] with JsonWriter[T]

    Permalink

    Provides the JSON deserialization and serialization for type T.

  15. class JsonParser extends AnyRef

    Permalink
  16. sealed trait JsonParserSettings extends AnyRef

    Permalink

    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)

  17. trait JsonPrinter extends (JsValue) ⇒ String

    Permalink

    A JsonPrinter serializes a JSON AST to a String.

  18. trait JsonReader[T] extends AnyRef

    Permalink

    Provides the JSON deserialization for type T.

    Provides the JSON deserialization for type T.

    Annotations
    @implicitNotFound( ... )
  19. trait JsonWriter[T] extends AnyRef

    Permalink

    Provides the JSON serialization for type T.

    Provides the JSON serialization for type T.

    Annotations
    @implicitNotFound( ... )
  20. trait NullOptions extends ProductFormats

    Permalink

    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.)

  21. trait ParserInput extends AnyRef

    Permalink
  22. trait PrettyPrinter extends JsonPrinter

    Permalink

    A JsonPrinter that produces a nicely readable JSON source.

  23. trait ProductFormats extends ProductFormatsInstances

    Permalink

    Provides the helpers for constructing custom JsonFormat implementations for types implementing the Product trait (especially case classes)

  24. trait ProductFormatsInstances extends AnyRef

    Permalink
  25. trait RootJsonFormat[T] extends JsonFormat[T] with RootJsonReader[T] with RootJsonWriter[T]

    Permalink

    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.

  26. trait RootJsonReader[T] extends JsonReader[T]

    Permalink

    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.

    Annotations
    @implicitNotFound( ... )
  27. trait RootJsonWriter[T] extends JsonWriter[T]

    Permalink

    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.

    Annotations
    @implicitNotFound( ... )
  28. class SerializationException extends RuntimeException

    Permalink
  29. trait SortedPrinter extends PrettyPrinter

    Permalink
  30. trait StandardFormats extends AnyRef

    Permalink

    Provides the JsonFormats for the non-collection standard types.

Value Members

  1. object CompactPrinter extends CompactPrinter

    Permalink
  2. object DefaultJsonProtocol extends DefaultJsonProtocol

    Permalink
  3. object JsArray extends Serializable

    Permalink
  4. object JsBoolean

    Permalink
  5. object JsFalse extends JsBoolean with Product with Serializable

    Permalink
  6. object JsNull extends JsValue with Product with Serializable

    Permalink

    The representation for JSON null.

  7. object JsNumber extends Serializable

    Permalink
  8. object JsObject extends Serializable

    Permalink
  9. object JsString extends Serializable

    Permalink
  10. object JsTrue extends JsBoolean with Product with Serializable

    Permalink
  11. object JsonParser

    Permalink

    Fast, no-dependency parser for JSON as defined by http://tools.ietf.org/html/rfc4627.

  12. object JsonParserSettings

    Permalink
  13. object JsonPrinter

    Permalink
  14. object JsonReader

    Permalink
  15. object JsonWriter

    Permalink
  16. object ParserInput

    Permalink
  17. object PrettyPrinter extends PrettyPrinter

    Permalink
  18. object ProductFormats

    Permalink
  19. object SortedPrinter extends SortedPrinter

    Permalink
  20. def deserializationError(msg: String, cause: Throwable = null, fieldNames: List[String] = Nil): Nothing

    Permalink
  21. implicit def enrichAny[T](any: T): RichAny[T]

    Permalink
  22. implicit def enrichString(string: String): RichString

    Permalink
  23. def jsonReader[T](implicit reader: JsonReader[T]): JsonReader[T]

    Permalink
  24. def jsonWriter[T](implicit writer: JsonWriter[T]): JsonWriter[T]

    Permalink
  25. def serializationError(msg: String): Nothing

    Permalink

Deprecated Value Members

  1. def pimpAny[T](any: T): PimpedAny[T]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.4) use enrichAny

  2. def pimpString(string: String): PimpedString

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.4) use enrichString

Inherited from AnyRef

Inherited from Any

Ungrouped