Package arc.util.serialization
Class JsonReader
java.lang.Object
arc.util.serialization.JsonReader
- All Implemented Interfaces:
BaseJsonReader
Lightweight JSON parser.
The default behavior is to parse the JSON into a DOM containing
The default behavior is to parse the JSON into a DOM containing
JsonValue
objects. Extend this class and override
methods to perform event driven parsing. When this is done, the parse methods will return null.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
parse
(char[] data, int offset, int length) parse
(InputStream input) protected void
pop()
protected void
startArray
(String name) protected void
startObject
(String name) protected void
-
Constructor Details
-
JsonReader
public JsonReader()
-
-
Method Details
-
parse
-
parse
-
parse
- Specified by:
parse
in interfaceBaseJsonReader
-
parse
- Specified by:
parse
in interfaceBaseJsonReader
-
parse
-
startObject
-
startArray
-
pop
protected void pop() -
string
-
number
-
number
-
bool
-