Serialization
org.json4s.native.Serialization
object Serialization extends Serialization
Functions to serialize and deserialize a case class. Custom serializer can be inserted if a class is not a case class.
Example:
val hints = new ShortTypeHints( ... ) implicit val formats: Formats = Serialization.formats(hints)
Attributes
- See also
-
org.json4s.TypeHints
- Source
- Serialization.scala
- Graph
-
- Supertypes
-
trait Serializationclass Objecttrait Matchableclass Any
- Self type
-
Serialization.type
Members list
Value members
Concrete methods
Deserialize from a String.
Deserialize from a Reader.
Serialize to String.
Serialize to Writer.
Serialize to String (pretty format).
Serialize to Writer (pretty format).
Serialize to String (pretty format).
Serialize to Writer (pretty format).
Inherited methods
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)
Attributes
- Inherited from:
- Serialization
- Source
- Serialization.scala
Deserialize from a String.
In this article