trait AdditionalFormats extends AnyRef
Provides additional JsonFormats and helpers
- Alphabetic
- By Inheritance
- AdditionalFormats
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asSingleton[A](a: A): JsonFormat[A]
A
JsonFormat
that doesn't write and always return this instance ofa
. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
contramapKeyWriter[A, B](f: (B) ⇒ A)(implicit ev: JsonKeyWriter[A]): JsonKeyWriter[B]
A
JsonKeyWriter
that can read an instance ofB
by using aJsonKeyWriter
forA
. -
def
contramapWriter[A, B](f: (B) ⇒ A)(implicit ev: JsonWriter[A]): JsonWriter[B]
A
JsonWriter
that can read an instance ofB
by using aJsonWriter
forA
. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
jsonFormat[A](reader: JsonReader[A], writer: JsonWriter[A]): JsonFormat[A]
Constructs a JsonFormat from its two parts, JsonReader and JsonWriter.
-
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.
-
def
liftFormat[A <: AnyRef](reader: RootJsonReader[A]): RootJsonFormat[A]
Turns a RootJsonReader into a RootJsonFormat that throws an UnsupportedOperationException for writes.
-
def
liftFormat[A <: AnyRef](reader: JsonReader[A]): JsonFormat[A]
Turns a JsonReader into a JsonFormat that throws an UnsupportedOperationException for writes.
-
def
liftFormat[A](writer: RootJsonWriter[A]): RootJsonFormat[A]
Turns a RootJsonWriter into a RootJsonFormat that throws an UnsupportedOperationException for reads.
-
def
liftFormat[A](writer: JsonWriter[A]): JsonFormat[A]
Turns a JsonWriter into a JsonFormat that throws an UnsupportedOperationException for reads.
-
def
mapKeyReader[A, B](f: (A) ⇒ B)(implicit ev: JsonKeyReader[A]): JsonKeyReader[B]
A
JsonKeyReader
that can read an instance ofB
by using aJsonKeyReader
forA
. -
def
mapReader[A, B](f: (A) ⇒ B)(implicit ev: JsonReader[A]): JsonReader[B]
A
JsonReader
that can read an instance ofB
by using aJsonReader
forA
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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 ofT
by using aJsonFormat
forU
. -
def
rootFormat[A](format: JsonFormat[A]): RootJsonFormat[A]
Explicitly turns a JsonFormat into a RootJsonFormat.
-
def
rootJsonFormat[T](reader: RootJsonReader[T], writer: RootJsonWriter[T]): RootJsonFormat[T]
Constructs a RootJsonFormat from its two parts, RootJsonReader and RootJsonWriter.
-
def
safeReader[A](implicit arg0: JsonReader[A]): JsonReader[Either[Exception, A]]
Wraps an existing JsonReader with Exception protection.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )