Class JSONFactory

java.lang.Object
org.ghotibeaun.json.JSONFactory

public abstract class JSONFactory
extends Object
Factory class used to instantiate a new JSONParser. For anyone familiar with JAXP, this API uses the same type of pattern.

Example

 JSONFactory factory = JSONFactory.newFactory();
 //Use the factory to create a new Parser
 JSONParser parser = factory.newParser();
 //Now use the parser to create a new JSONObject, using one of its methods - we'll create an empty one here...
 JSONObject json = parser.newJSONObject();
 
Author:
jearley