package org.json4s

import text.Document

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