Package com.rayrobdod.javaScriptObjectNotation.parser

These are the specific operations related to processing JSON files.

See: Description

Package com.rayrobdod.javaScriptObjectNotation.parser Description

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();