t

sjsonnew

AdditionalFormats

trait AdditionalFormats extends AnyRef

Provides additional JsonFormats and helpers

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asSingleton[A](a: A): JsonFormat[A]

    A JsonFormat that doesn't write and always return this instance of a.

  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def contramapKeyWriter[A, B](f: (B) ⇒ A)(implicit ev: JsonKeyWriter[A]): JsonKeyWriter[B]

    A JsonKeyWriter that can read an instance of B by using a JsonKeyWriter for A.

  8. def contramapWriter[A, B](f: (B) ⇒ A)(implicit ev: JsonWriter[A]): JsonWriter[B]

    A JsonWriter that can read an instance of B by using a JsonWriter for A.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def jsonFormat[A](reader: JsonReader[A], writer: JsonWriter[A]): JsonFormat[A]

    Constructs a JsonFormat from its two parts, JsonReader and JsonWriter.

  16. def lazyFormat[A](format: ⇒ JsonFormat[A]): JsonFormat[A] { lazy val delegate: sjsonnew.JsonFormat[A] }

    Lazy wrapper around serialization.

    Lazy wrapper around serialization. Useful when you want to serialize (mutually) recursive structures.

  17. def liftFormat[A <: AnyRef](reader: RootJsonReader[A]): RootJsonFormat[A]

    Turns a RootJsonReader into a RootJsonFormat that throws an UnsupportedOperationException for writes.

  18. def liftFormat[A <: AnyRef](reader: JsonReader[A]): JsonFormat[A]

    Turns a JsonReader into a JsonFormat that throws an UnsupportedOperationException for writes.

  19. def liftFormat[A](writer: RootJsonWriter[A]): RootJsonFormat[A]

    Turns a RootJsonWriter into a RootJsonFormat that throws an UnsupportedOperationException for reads.

  20. def liftFormat[A](writer: JsonWriter[A]): JsonFormat[A]

    Turns a JsonWriter into a JsonFormat that throws an UnsupportedOperationException for reads.

  21. def mapKeyReader[A, B](f: (A) ⇒ B)(implicit ev: JsonKeyReader[A]): JsonKeyReader[B]

    A JsonKeyReader that can read an instance of B by using a JsonKeyReader for A.

  22. def mapReader[A, B](f: (A) ⇒ B)(implicit ev: JsonReader[A]): JsonReader[B]

    A JsonReader that can read an instance of B by using a JsonReader for A.

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  26. def projectFormat[T, U](f1: (T) ⇒ U, f2: (U) ⇒ T)(implicit fu: JsonFormat[U]): JsonFormat[T]

    A JsonFormat that can read and write an instance of T by using a JsonFormat for U.

  27. def rootFormat[A](format: JsonFormat[A]): RootJsonFormat[A]

    Explicitly turns a JsonFormat into a RootJsonFormat.

  28. def rootJsonFormat[T](reader: RootJsonReader[T], writer: RootJsonWriter[T]): RootJsonFormat[T]

    Constructs a RootJsonFormat from its two parts, RootJsonReader and RootJsonWriter.

  29. def safeReader[A](implicit arg0: JsonReader[A]): JsonReader[Either[Exception, A]]

    Wraps an existing JsonReader with Exception protection.

  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped