blob: c031e71f4ee4ec062751b63a0d6a1e2b32b2bd4d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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: CharSequence, decIndex: Int, expIndex: Int) = JNumber.unsafeFromString(s.toString)
def jstring(s: CharSequence) = JString(s.toString)
def jarray(vs: mutable.ArrayBuffer[JValue]) = JArray(vs)
def jobject(vs: mutable.Map[String, JValue]) = JObject(vs)
}
}
|