cc.spray.json

NullOptions

trait NullOptions extends ProductFormats

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

Self Type
NullOptions with StandardFormats
Linear Supertypes
ProductFormats, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. NullOptions
  2. ProductFormats
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  12. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  13. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  14. def jsonFormat [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, T <: Product] (construct: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String, o: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F], arg6: JF[G], arg7: JF[H], arg8: JF[I], arg9: JF[J], arg10: JF[K], arg11: JF[L], arg12: JF[M], arg13: JF[N], arg14: JF[O]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  15. def jsonFormat [A, B, C, D, E, F, G, H, I, J, K, L, M, N, T <: Product] (construct: (A, B, C, D, E, F, G, H, I, J, K, L, M, N) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String, n: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F], arg6: JF[G], arg7: JF[H], arg8: JF[I], arg9: JF[J], arg10: JF[K], arg11: JF[L], arg12: JF[M], arg13: JF[N]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  16. def jsonFormat [A, B, C, D, E, F, G, H, I, J, K, L, M, T <: Product] (construct: (A, B, C, D, E, F, G, H, I, J, K, L, M) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String, m: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F], arg6: JF[G], arg7: JF[H], arg8: JF[I], arg9: JF[J], arg10: JF[K], arg11: JF[L], arg12: JF[M]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  17. def jsonFormat [A, B, C, D, E, F, G, H, I, J, K, L, T <: Product] (construct: (A, B, C, D, E, F, G, H, I, J, K, L) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String, l: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F], arg6: JF[G], arg7: JF[H], arg8: JF[I], arg9: JF[J], arg10: JF[K], arg11: JF[L]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  18. def jsonFormat [A, B, C, D, E, F, G, H, I, J, K, T <: Product] (construct: (A, B, C, D, E, F, G, H, I, J, K) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String, k: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F], arg6: JF[G], arg7: JF[H], arg8: JF[I], arg9: JF[J], arg10: JF[K]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  19. def jsonFormat [A, B, C, D, E, F, G, H, I, J, T <: Product] (construct: (A, B, C, D, E, F, G, H, I, J) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F], arg6: JF[G], arg7: JF[H], arg8: JF[I], arg9: JF[J]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  20. def jsonFormat [A, B, C, D, E, F, G, H, I, T <: Product] (construct: (A, B, C, D, E, F, G, H, I) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F], arg6: JF[G], arg7: JF[H], arg8: JF[I]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  21. def jsonFormat [A, B, C, D, E, F, G, H, T <: Product] (construct: (A, B, C, D, E, F, G, H) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F], arg6: JF[G], arg7: JF[H]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  22. def jsonFormat [A, B, C, D, E, F, G, T <: Product] (construct: (A, B, C, D, E, F, G) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String, g: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F], arg6: JF[G]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  23. def jsonFormat [A, B, C, D, E, F, T <: Product] (construct: (A, B, C, D, E, F) ⇒ T, a: String, b: String, c: String, d: String, e: String, f: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E], arg5: JF[F]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  24. def jsonFormat [A, B, C, D, E, T <: Product] (construct: (A, B, C, D, E) ⇒ T, a: String, b: String, c: String, d: String, e: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D], arg4: JF[E]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  25. def jsonFormat [A, B, C, D, T <: Product] (construct: (A, B, C, D) ⇒ T, a: String, b: String, c: String, d: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C], arg3: JF[D]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  26. def jsonFormat [A, B, C, T <: Product] (construct: (A, B, C) ⇒ T, a: String, b: String, c: String)(implicit arg0: JF[A], arg1: JF[B], arg2: JF[C]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  27. def jsonFormat [A, B, T <: Product] (construct: (A, B) ⇒ T, a: String, b: String)(implicit arg0: JF[A], arg1: JF[B]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  28. def jsonFormat [A, T <: Product] (construct: (A) ⇒ T, a: String)(implicit arg0: JF[A]): JF[T] { def write(p: T): cc.spray.json.JsObject }

    Definition Classes
    ProductFormats
  29. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  30. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. def productElement2Field [T] (fieldName: String, p: Product, ix: Int, rest: List[JsField])(implicit writer: JsonWriter[T]): List[JsField]

    Attributes
    protected
    Definition Classes
    NullOptionsProductFormats
  33. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  34. def toString (): String

    Definition Classes
    AnyRef → Any
  35. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ProductFormats

Inherited from AnyRef

Inherited from Any