See: Description
Interface | Description |
---|---|
JSONDecoder<RetType> |
This takes a String that is properly JSON encoded and turns it into a Java Object
This is basically used to affect the deep parsing of the listeners.
|
JSONParseListener |
Modified and extracted ParseListener from JSONArray
|
Class | Description |
---|---|
JSONParseAdapter |
This is an Adapter for JSONParseListener.
|
JSONParser |
This is the class that parses Strings and calls functions in JSONParseListeners based on what it finds.
|
These are the specific operations related to processing JSON files.
The main class of these are the
JSONParser
class and the
JSONParseListener
.
All the other classes in this package implement JSONParseListener.
Standard usagage consists simply of creating a JSONParser, then running any JSONParseListener through
one of the parse methods. The results can then be obtained form the JSONParseListener.
// initiate an instance of a JSONParseListener
SizeBSONParseListener l = new SizeBSONParseListener();
// run JSONParser#parse(JSONParseListener, Reader) using the just-made JSONParseListener and a previously created reader.
JSONParser.parse(l, reader);
// obtain results from the JSONParseListener
int size = l.getCount();