org.json4s.jackson.package.scala Maven / Gradle / Ivy
package org.json4s
package object jackson {
def parseJson(in: JsonInput, useBigDecimalForDouble: Boolean = false): JValue =
JsonMethods.parse(in, useBigDecimalForDouble)
def parseJsonOpt(in: JsonInput, useBigDecimalForDouble: Boolean = false): Option[JValue] =
JsonMethods.parseOpt(in, useBigDecimalForDouble)
def renderJValue(value: JValue)(implicit formats: Formats = DefaultFormats): JValue =
JsonMethods.render(value)(formats)
def compactJson(d: JValue): String = JsonMethods.compact(d)
def prettyJson(d: JValue): String = JsonMethods.pretty(d)
}