All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.json4s.jackson.package.scala Maven / Gradle / Ivy

There is a newer version: 4.1.0-M7
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy