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

    Permalink

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

  2. trait DerivedJsonProtocol extends DefaultJsonProtocol with DerivedFormats

    Permalink
  3. trait ImplicitDerivedFormats extends DerivedFormats

    Permalink
  4. trait ImplicitDerivedJsonProtocol extends DefaultJsonProtocol with ImplicitDerivedFormats

    Permalink
  5. type JsField = (String, JsValue)

    Permalink
  6. trait KebabCase extends AnyRef

    Permalink

    Serialize parametersOfCaseClasses as parameters-of-case-classes.

  7. trait SnakeCase extends AnyRef

    Permalink

    Serialize parametersOfCaseClasses as parameters_of_case_classes.

  8. final class adt extends Annotation with StaticAnnotation

    Permalink

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

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

    Note that by default all sealed traits are treated as ADTs, 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 otherwise result in a conflict.

    Example:

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

Value Members

  1. object DerivedFormatMacros

    Permalink
  2. object DerivedJsonProtocol extends DerivedJsonProtocol

    Permalink
  3. object FieldNaming

    Permalink
  4. object ImplicitDerivedJsonProtocol extends ImplicitDerivedJsonProtocol

    Permalink
  5. def deserializationError(msg: String, cause: Throwable, fieldNames: List[String]): Nothing

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

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

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

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

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

    Permalink

Deprecated Value Members

  1. object DerivedFormats extends DerivedFormats with DefaultJsonProtocol

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version spray-json-derivation 0.4.3) use DerivedJsonProtocol

  2. object ImplicitDerivedFormats extends ImplicitDerivedFormats with DefaultJsonProtocol

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version spray-json-derivation 0.4.3) use ImplicitDerivedJsonProtocol

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.4) use enrichAny

  4. def pimpString(string: String): PimpedString

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.4) use enrichString

Inherited from AnyRef

Inherited from Any

Ungrouped