Ends an array that was started with startArray.
Finishes parsing an object.
Finishes parsing an object. This will call any handlers registered for field names.
Looks for a null in the stream.
Looks for a null in the stream. If the next item in the stream is a null literal, this will read it and return true; else, it leaves the stream as-is and returns false.
Reads a type from the stream.
Reads an array into an iterator.
Reads an array into an iterator. If additional methods are called on this parser before the returned iterator is exhausted, behavior is undefined.
Read an item from an array.
Read an item from an array. Behavior is undefined if not inside of an array when called.
Reads a single boolean literal from the input.
Reads a single boolean literal from the input.
the value of the literal
DeserializationException
if the next item in the stream isn't a boolean
Registers a handler for a given object key.
Registers a handler for a given object key. If not called within parsing an object, behavior is undefined.
Reads a number from the stream.
Reads an object with same-typed values into an iterator.
Reads an object with same-typed values into an iterator. If additional methods are called on this parser before the returned iterator is exhausted, behavior is undefined.
Reads a single string literal from the input.
Reads a single string literal from the input.
the value of the string
DeserializationException
if the next item in the stream isn't a string
Skips the next value in the JSON stream.
Start a JS array, and reads the first item.
Start a JS array, and reads the first item.
DeserializationException
if there isn't a start of an array in the stream
Start a JS object.
Start a JS object.
DeserializationException
if there isn't a start of an object in the stream
JSON parser with pull semantics. Borrows heavily from the main JsonParser by Mathias Doenitz. Public methods will throw DeserializationException if the expected value isn't next in the input.