package native
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- native
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
Value Members
- def compactJson(d: Document): String
- def parseJson(in: JsonInput, useBigDecimalForDouble: Boolean = false): JValue
- def parseJsonOpt(in: JsonInput, useBigDecimalForDouble: Boolean = false): Option[JValue]
- def prettyJson(d: Document): String
- def renderJValue(value: JValue)(implicit formats: Formats = DefaultFormats): Document
- object Json
- object JsonMethods extends JsonMethods
-
object
JsonParser
JSON parser.
-
object
Printer
extends Printer
Printer converts JSON to String.
Printer converts JSON to String. Before printing a
JValue
needs to be rendered into scala.text.Document.Example:
pretty(render(json))
- See also
org.json4s.JsonAST#render
-
object
Serialization
extends Serialization
Functions to serialize and deserialize a case class.
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 = Serialization.formats(hints)
- See also
org.json4s.TypeHints