h.jawn-rojoma-v3_2.10.0.10.4.source-code.Parser.scala Maven / Gradle / Ivy
package jawn
package support.rojoma.v3
import scala.collection.mutable
import com.rojoma.json.v3.ast._
object Parser extends SupportParser[JValue] {
implicit val facade: Facade[JValue] =
new MutableFacade[JValue] {
def jnull() = JNull
def jfalse() = JBoolean.canonicalFalse
def jtrue() = JBoolean.canonicalTrue
def jnum(s: String) = JNumber.unsafeFromString(s)
def jint(s: String) = JNumber.unsafeFromString(s)
def jstring(s: String) = JString(s)
def jarray(vs: mutable.ArrayBuffer[JValue]) = JArray(vs)
def jobject(vs: mutable.Map[String, JValue]) = JObject(vs)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy