~ubuntu-branches/debian/experimental/json4s/experimental

« back to all changes in this revision

Viewing changes to native/src/main/scala/org/json4s/native/package.scala

  • Committer: Package Import Robot
  • Author(s): Frédéric Bonnard
  • Date: 2017-05-24 16:23:52 UTC
  • Revision ID: package-import@ubuntu.com-20170524162352-k7k8cj8u88wupw4b
Tags: upstream-3.5.0
Import upstream version 3.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.json4s
 
2
 
 
3
package object native {
 
4
  def parseJson(in: JsonInput, useBigDecimalForDouble: Boolean = false): JValue =
 
5
    JsonMethods.parse(in, useBigDecimalForDouble)
 
6
 
 
7
  def parseJsonOpt(in: JsonInput, useBigDecimalForDouble: Boolean = false): Option[JValue] =
 
8
    JsonMethods.parseOpt(in, useBigDecimalForDouble)
 
9
 
 
10
  def renderJValue(value: JValue)(implicit formats: Formats = DefaultFormats): Document =
 
11
    JsonMethods.render(value)(formats)
 
12
 
 
13
  def compactJson(d: Document): String = JsonMethods.compact(d)
 
14
 
 
15
  def prettyJson(d: Document): String = JsonMethods.pretty(d)
 
16
}