wjson

package wjson

Type members

Classlikes

object Eval

Json Pattern DSL

Json Pattern DSL

Companion:
object
object JsPattern
Companion:
class
class JsPatternParser extends RegexParsers
Companion:
object
Companion:
class
enum JsValue

Json Model ADT

Json Model ADT

Companion:
object
object JsValue
Companion:
class
trait JsValueMapper[T]

type class for JsValue Mapping

type class for JsValue Mapping

Companion:
object

Best Practice for Case Class Json Mapping:

Best Practice for Case Class Json Mapping:

  1. make the case class derives JsValueMapper.
  2. or declare a given JsValueMaper[T] for the case class

otherwise, every time you use API which using a JsValueMapper[T], a new JsValueMapper[T] will be created via the JsValueMapper.given_JsValueMapper_T macro. this is an expensive operation, every macro expansion will generate an anonumous implementation class. so, there will be a lot of classes in the compilation and increase the compile time, the output jar file will be large.

Companion:
class

Macro to generate a JsValueMapper for a given case class.

Macro to generate a JsValueMapper for a given case class.

class JsonInterpolation(sc: StringContext)

Created by wangzx on 15/7/6.

Created by wangzx on 15/7/6.

object JsonParser

Fast, no-dependency parser for JSON as defined by http://tools.ietf.org/html/rfc4627.

Fast, no-dependency parser for JSON as defined by http://tools.ietf.org/html/rfc4627.

Companion:
class
class JsonParser(input: ParserInput, jsonExtensionSupport: Boolean)
Companion:
object
object Main
Companion:
object
Companion:
class
class RejsonInterpolation(sc: StringContext)
Companion:
class
case class RejsonMatcher(pattern: Variable)

rejson is a pattern language for JSON

rejson is a pattern language for JSON

Companion:
object

Extensions

Extensions

extension (js: JsValue)
inline def convertTo[T : JsValueMapper]: T
extension [T](obj: T)
inline def toJson(implicit evidence$1: JsValueMapper[T]): JsValue
extension (sc: StringContext)
extension (str: String)
def parseJson(extension: Boolean): JsValue

Exports

Defined exports

final type JsArray = JsArray
Exported from JsValue$
final type JsBoolean = JsBoolean
Exported from JsValue$
final type JsNumber = JsNumber
Exported from JsValue$
final type JsObject = JsObject
Exported from JsValue$
final type JsString = JsString
Exported from JsValue$