Serialization

Serialization using default JsonMethods

Source:
Serialization.scala
trait Serialization
class Object
trait Matchable
class Any

Value members

Inherited methods

def formats(hints: TypeHints): Formats

Create Serialization formats with given type hints.

Create Serialization formats with given type hints.

Example:

val hints = new ShortTypeHints( ... )
implicit val formats: Formats = Serialization.formats(hints)
Inherited from:
Serialization
Source:
Serialization.scala
def read[A](in: Reader)(implicit formats: Formats, mf: Manifest[A]): A

Deserialize from a Reader.

Deserialize from a Reader.

Inherited from:
JacksonSerialization
Source:
Serialization.scala
def read[A](json: JsonInput)(implicit formats: Formats, mf: Manifest[A]): A

Deserialize from an JsonInput

Deserialize from an JsonInput

Inherited from:
JacksonSerialization
Source:
Serialization.scala
def read[A](json: String)(implicit formats: Formats, mf: Manifest[A]): A

Deserialize from a String.

Deserialize from a String.

Inherited from:
Serialization
Source:
Serialization.scala
def write[A <: AnyRef](a: A, out: OutputStream)(implicit formats: Formats): Unit
def write[A <: AnyRef, W <: Writer](a: A, out: W)(implicit formats: Formats): W

Serialize to Writer.

Serialize to Writer.

Inherited from:
JacksonSerialization
Source:
Serialization.scala
def write[A <: AnyRef](a: A)(implicit formats: Formats): String

Serialize to String.

Serialize to String.

Inherited from:
JacksonSerialization
Source:
Serialization.scala
def writePretty[A <: AnyRef, W <: Writer](a: A, out: W)(implicit formats: Formats): W

Serialize to Writer (pretty format).

Serialize to Writer (pretty format).

Inherited from:
JacksonSerialization
Source:
Serialization.scala
def writePretty[A <: AnyRef](a: A)(implicit formats: Formats): String

Serialize to String (pretty format).

Serialize to String (pretty format).

Inherited from:
JacksonSerialization
Source:
Serialization.scala