JsonParser

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): Json
Definition Classes
def parse(file: File): Json
def parse(path: Path): Json

Inherited 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

Inherited from:
AbstractJsonParser
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

Inherited from:
AbstractJsonParser