trait AdditionalFormats extends AnyRef
Provides additional JsonFormats and helpers
- Alphabetic
- By Inheritance
- AdditionalFormats
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jsonFormat[T](reader: JsonReader[T], writer: JsonWriter[T]): JsonFormat[T]
Constructs a JsonFormat from its two parts, JsonReader and JsonWriter.
- def lazyFormat[T](format: => JsonFormat[T]): JsonFormat[T] { lazy val delegate: spray.json.JsonFormat[T] }
Lazy wrapper around serialization.
Lazy wrapper around serialization. Useful when you want to serialize (mutually) recursive structures.
- def lift[T <: AnyRef](reader: RootJsonReader[T]): RootJsonFormat[T]
Turns a RootJsonReader into a RootJsonFormat that throws an UnsupportedOperationException for writes.
- def lift[T <: AnyRef](reader: JsonReader[T]): JsonFormat[T]
Turns a JsonReader into a JsonFormat that throws an UnsupportedOperationException for writes.
- def lift[T](writer: RootJsonWriter[T]): RootJsonFormat[T]
Turns a RootJsonWriter into a RootJsonFormat that throws an UnsupportedOperationException for reads.
- def lift[T](writer: JsonWriter[T]): JsonFormat[T] { def read(value: spray.json.JsValue): Nothing }
Turns a JsonWriter into a JsonFormat that throws an UnsupportedOperationException for reads.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rootFormat[T](format: JsonFormat[T]): RootJsonFormat[T]
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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- implicit object JsValueFormat extends JsonFormat[JsValue]
- implicit object RootJsArrayFormat extends RootJsonFormat[JsArray]
- implicit object RootJsObjectFormat extends RootJsonFormat[JsObject]