Packages

p

spray

json

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 DerivedFormats extends AnyRef

    Mixin that enables derivation of JSON formats for any product (case classes) or coproduct (sealed traits) types.

  2. trait ImplicitDerivedFormats extends DerivedFormats
  3. type JsField = (String, JsValue)
  4. final class gadt extends Annotation with StaticAnnotation

    An annotation that designates that a sealed trait is a generalized algebraic datatype (GADT), and that a type field containing the serialized childrens' types should be added to the final JSON objects.

    An annotation that designates that a sealed trait is a generalized algebraic datatype (GADT), and that a type field containing the serialized childrens' types should be added to the final JSON objects.

    Note that by default all sealed traits are treated as GADTs, with a type field called type. This annotation enables overriding the name of that field and is really only useful if a child itself has a field called type that would result in a conflict.

    Example:

    // the JSON field "kind" will contain the actual type of the serialized child
    @gadt("kind") sealed abstract class Keyword(`type`: String)
    case class If(`type`: String) extends Keyword(`type`)

Value Members

  1. def deserializationError(msg: String, cause: Throwable, fieldNames: List[String]): Nothing
  2. implicit def enrichAny[T](any: T): RichAny[T]
  3. implicit def enrichString(string: String): RichString
  4. def jsonReader[T](implicit reader: JsonReader[T]): JsonReader[T]
  5. def jsonWriter[T](implicit writer: JsonWriter[T]): JsonWriter[T]
  6. def serializationError(msg: String): Nothing
  7. object DerivedFormatMacros
  8. object DerivedFormats extends DerivedFormats with DefaultJsonProtocol
  9. object ImplicitDerivedFormats extends ImplicitDerivedFormats with DefaultJsonProtocol

Deprecated Value Members

  1. def pimpAny[T](any: T): PimpedAny[T]
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.4) use enrichAny

  2. def pimpString(string: String): PimpedString
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.4) use enrichString

Inherited from AnyRef

Inherited from Any

Ungrouped