JSONString package org.json; The JSONString interface allows a toJSONString() method so that a class can change the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.value(Object)


JSONArray A JSONArray is an ordered sequence of values. 
JSONObject A JSONObject is an unordered collection of name/value pairs. 
JSONTokener A JSONTokener takes a source string and extracts characters and tokens from it. 
XML This provides static methods to convert an XML text into a JSONObject, and to covert a JSONObject into an XML text. 
XMLTokener The XMLTokener extends the JSONTokener to provide additional methods for the parsing of XML texts. 


JSONException package org.json; The JSONException is thrown by the classes when things are amiss.