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 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 format(value: Value, writer: JsonWriter): String

Formats the supplied value for pretty output.

Formats the supplied value for pretty output.

Value Params
value

the value to format

writer

the JsonWriter to use (defaults to JsonWriter.Default)

Returns

formatted String

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