package native
- Source
- package.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- native
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- case class DocCons (hd: Document, tl: Document) extends Document with Product with Serializable
- case class DocGroup (doc: Document) extends Document with Product with Serializable
- case class DocNest (indent: Int, doc: Document) extends Document with Product with Serializable
- case class DocText (txt: String) extends Document with Product with Serializable
-
sealed abstract
class
Document
extends Product with Serializable
A basic pretty-printing library, based on Lindig's strict version of Wadler's adaptation of Hughes' pretty-printer.
A basic pretty-printing library, based on Lindig's strict version of Wadler's adaptation of Hughes' pretty-printer.
derived from https://github.com/scala/scala/blob/v2.11.8/src/library/scala/text/Document.scala
- class Json extends JsonUtil
- trait JsonMethods extends json4s.JsonMethods[Document]
- trait Printer extends AnyRef
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 DocBreak extends Document with Product with Serializable
- object DocNil extends Document with Product with Serializable
- object Document extends Serializable
- 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
JValueneeds to be rendered into 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