sjsonnew

AdditionalFormats

trait AdditionalFormats extends AnyRef

Provides additional JsonFormats and helpers

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AdditionalFormats
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

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

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

    Definition Classes
    Any
  7. def asSingleton[A](a: A): JsonFormat[A]

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

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. 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.

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

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

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

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

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

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

    Definition Classes
    Any
  17. def jsonFormat[A](reader: JsonReader[A], writer: JsonWriter[A]): JsonFormat[A]

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

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

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

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

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

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

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

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

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

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

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

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

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. 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.

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

    Explicitly turns a JsonFormat into a RootJsonFormat.

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

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

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

    Wraps an existing JsonReader with Exception protection.

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped