JSONReader Event Types

Event types of the json.JSONReader class.

Table 1. JSONReader event types
Type Description JSON sample
START_DOCUMENT JSONReader cursor points to the beginning of the JSON document. An open curly brace { or an open square bracket [
END_DOCUMENT

JSONReader cursor has reached the end of the JSON document.

No additional parsing operation will succeed.

A close curly brace } or a close square bracket ]
START_OBJECT JSONReader cursor points to a JSON start object node. { An open curly brace

For example, {"firstName":"John", "lastName":"Doe"}

END_OBJECT JSONReader cursor points to a JSON end object node. } A close curly brace

For example, {"firstName":"John", "lastName":"Doe"}

START_ARRAY JSONReader cursor points to a JSON start array node. [ an open square bracket

For example, ["Ford", "BMW", "Fiat"]

END_ARRAY JSONReader cursor points to a JSON end array node. ] a close square bracket

For example, ["Ford", "BMW", "Fiat"]

PROPERTY JSONReader cursor points to the field name of a JSON data name/value pair. {"firstName":"John"}
STRING JSONReader cursor points to a string value of a JSON data name/value pair. {"lastname":"Doe"}
NUMBER JSONReader cursor points to a number value of a JSON data name/value pair. {"age":30}
BOOLEAN JSONReader cursor points to a boolean value of a JSON data name/value pair. {"sale":true}
NULL JSONReader cursor points to a null value of a JSON data name/value pair. {"middlename":null}