AbstractJson

Json provides support for parsing and formatting fabric Values from/to JSON

class Object
trait Matchable
class Any
object Json

Value members

Abstract methods

def format(value: Value): String

Formats the supplied value for pretty output.

Formats the supplied value for pretty output.

Value Params
value

the value to format

Returns

formatted String

def parse(s: String): Value

Parses the JSON string into a fabric Value.

Parses the JSON string into a fabric Value.

Value Params
s

the JSON string to parse

Returns

Value

Concrete methods

def parse(source: Source): Value

Parses the JSON source into a fabric Value.

Parses the JSON source into a fabric Value.

Value Params
source

the source of JSON to parse

Returns

Value