wjson

package wjson

Members list

Packages

package wjson.macros

Type members

Classlikes

enum JsValue

Json Model ADT

Json Model ADT

Attributes

Companion
object
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object JsValue

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
JsValue.type
trait JsValueMapper[T]

type class for JsValue Mapping

type class for JsValue Mapping

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object JsValueMapper

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class Json5Interpolation(sc: StringContext) extends JsonInterpolation

Attributes

Supertypes
class Object
trait Matchable
class Any
class Json5Parser(input: ParserInput)

JSON5 is a superset of JSON, the specification can be found at: http://json5.org/ the main differences are:

JSON5 is a superset of JSON, the specification can be found at: http://json5.org/ the main differences are:

  • single quoted strings are allowed
  • comments are allowed
  • trailing commas are allowed
  • trailing commas are allowed in objects and arrays
  • numbers can be hexadecimal
  • numbers can have a leading or trailing decimal point

Attributes

Supertypes
class Object
trait Matchable
class Any
class JsonInterpolation(sc: StringContext)

Created by wangzx on 15/7/6.

Created by wangzx on 15/7/6.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
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.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
JsonParser.type
class JsonParser(input: ParserInput)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
trait ParserInput

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ParserInput

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Givens

Givens

given given_Conversion_CC_JsArray[T : JsValueMapper, CC <: (IterableOps)]: given_Conversion_CC_JsArray[T, CC]

support List,Seq,Vector,Set, SortedSet etc.

support List,Seq,Vector,Set, SortedSet etc.

Attributes

given given_Conversion_T_JsValue[T : JsValueMapper]: given_Conversion_T_JsValue[T]

T can implicitly convert to JsValue

T can implicitly convert to JsValue

Attributes

Extensions

Extensions

extension (js: JsValue)
inline def convertTo[T : JsValueMapper]: T
extension [T](obj: T)
inline def toJson: JsValue
extension (sc: StringContext)
extension (str: String)

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$