Package org.opencms.json
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
- See Also:
CmsLocaleManager
,I_CmsMessageBundle
-
Interface Summary Interface Description I_CmsJsonifable To convert objects to json.I_JSONString TheI_JSONString
interface allows atoJSONString()
method so that a class can change the behavior ofJSONObject.toString()
,JSONArray.toString()
, andJSONWriter.value(
Object)
. -
Class Summary Class Description 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 Exception Description JSONException The JSONException is thrown by the JSON.org classes when things are amiss.