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: 3.2.11
Show newest version
package org.json4s

import com.fasterxml.jackson.databind.ObjectMapper

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): JValue = JsonMethods.render(value)
  def compactJson(d: JValue): String = JsonMethods.compact(d)
  def prettyJson(d: JValue): String = JsonMethods.pretty(d)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy