Json

object Json extends AbstractJson

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

class Object
trait Matchable
class Any
Json.type

Value members

Concrete methods

override def parse(s: String): Value
Definition Classes
def parse(value: Any): 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 parameters:
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 parameters:
source

the source of JSON to parse

Returns:

Value

Inherited from:
AbstractJson