AbstractJsonParser

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

class Object
trait Matchable
class Any
object JsonParser.type

Value members

Abstract methods

def parse(s: String): Json

Parses the JSON string into a fabric Value.

Parses the JSON string into a fabric Value.

Value parameters:
s

the JSON string to parse

Returns:

Value

Concrete methods

def format(value: Json, writer: JsonWriter): String

Formats the supplied value for pretty output.

Formats the supplied value for pretty output.

Value parameters:
value

the value to format

writer

the JsonWriter to use (defaults to JsonWriter.Default)

Returns:

formatted String

def parse(source: Source): Json

Parses the JSON source into a fabric Value.

Parses the JSON source into a fabric Value.

Value parameters:
source

the source of JSON to parse

Returns:

Value