Packages

p

org.json4s

native

package native

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. native
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class DocCons(hd: Document, tl: Document) extends Document with Product with Serializable
  2. case class DocGroup(doc: Document) extends Document with Product with Serializable
  3. case class DocNest(indent: Int, doc: Document) extends Document with Product with Serializable
  4. case class DocText(txt: String) extends Document with Product with Serializable
  5. 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

  6. class Json extends JsonUtil
  7. trait JsonMethods extends json4s.JsonMethods[Document]
  8. trait Printer extends AnyRef

Value Members

  1. def compactJson(d: Document): String
  2. def parseJson(in: JsonInput, useBigDecimalForDouble: Boolean = false): JValue
  3. def parseJsonOpt(in: JsonInput, useBigDecimalForDouble: Boolean = false): Option[JValue]
  4. def prettyJson(d: Document): String
  5. def renderJValue(value: JValue)(implicit formats: Formats = DefaultFormats): Document
  6. object DocBreak extends Document with Product with Serializable
  7. object DocNil extends Document with Product with Serializable
  8. object Document extends Serializable
  9. object Json
  10. object JsonMethods extends JsonMethods
  11. object JsonParser

    JSON parser.

  12. object Printer extends Printer

    Printer converts JSON to String.

    Printer converts JSON to String. Before printing a JValue needs to be rendered into Document.

    Example:

    pretty(render(json))
    

    See also

    org.json4s.JsonAST#render

  13. 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

Inherited from AnyRef

Inherited from Any

Ungrouped