Json

object Json extends AbstractJson

Json provides convenience functionality to parse and format JSON to/from fabric Values

class Object
trait Matchable
class Any

Value members

Concrete methods

override
def parse(s: String): Value
Definition Classes
def parse(file: File): Value
def parse(path: Path): Value

Inherited 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

Inherited from
AbstractJson
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

Inherited from
AbstractJson