Package org.opencms.json

Classes to create JSON objects and arrays for JavaScript in OpenCms.

See:
          Description

Interface Summary
I_JSONString The I_JSONString interface allows a toJSONString() method so that a class can change the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.value(Object).
 

Class Summary
CDL This provides static methods to convert comma delimited text into a JSONArray, and to covert a JSONArray into comma delimited text.
JSONArray A JSONArray is an ordered sequence of values.
JSONML This provides static methods to convert an XML text into a JSONObject, and to convert a JSONObject into an XML text using the JsonML transform.
JSONObject A JSONObject is an unordered collection of name/value pairs.
JSONObject.Null JSONObject.NULL is equivalent to the value that JavaScript calls null, whilst Java's null is equivalent to the value that JavaScript calls undefined.
JSONStringer JSONStringer provides a quick and convenient way of producing JSON text.
JSONTokener A JSONTokener takes a source string and extracts characters and tokens from it.
JSONWriter JSONWriter provides a quick and convenient way of producing JSON text.
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.
 

Exception Summary
JSONException The JSONException is thrown by the JSON.org classes when things are amiss.
 

Package org.opencms.json Description

Classes to create JSON objects and arrays for JavaScript in OpenCms.

The classes were taken from the org.json package and modified for OpenCms.

Since:
7.5.0
Version:
$Revision: 1.3 $
See Also:
CmsLocaleManager, I_CmsMessageBundle