SyncParser

abstract class SyncParser[J] extends Parser[J]

SyncParser extends Parser to do all parsing synchronously.

Most traditional JSON parser are synchronous, and expect to receive all their input before returning. SyncParser[J] still leaves Parser[J]'s methods abstract, but adds a public methods for users to call to actually parse JSON.

class Parser[J]
class Object
trait Matchable
class Any

Value members

Concrete methods

final def parse()(implicit facade: Facade[J]): J

Parse the JSON document into a single JSON value.

Parse the JSON document into a single JSON value.

The parser considers documents like '333', 'true', and '"foo"' to be valid, as well as more traditional documents like [1,2,3,4,5]. However, multiple top-level objects are not allowed.