All Downloads are FREE. Search and download functionalities are using the official Maven repository.

a8.shared.json.impl.JawnFacade.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-20230212_1012_master
Show newest version
package a8.shared.json.impl

import a8.shared.json.ast._
import org.typelevel.jawn.Facade.SimpleFacade

object JawnFacade extends SimpleFacade[JsVal] {
  override def jarray(vs: List[JsVal]): JsVal = JsArr(vs)
  override def jobject(vs: Map[String, JsVal]): JsVal = JsObj(vs)
  override def jnull: JsVal = JsNull
  override def jfalse: JsVal = JsFalse
  override def jtrue: JsVal = JsTrue
  override def jnum(s: CharSequence, decIndex: Int, expIndex: Int): JsVal = JsNum(BigDecimal(s.toString))
  override def jstring(s: CharSequence): JsVal = JsStr(s.toString)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy