Package org.opencms.json
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:
-
ClassDescriptionThis provides static methods to convert comma delimited text into a JSONArray, and to covert a JSONArray into comma delimited text.To convert objects to json.The
I_JSONStringinterface allows atoJSONString()method so that a class can change the behavior ofJSONObject.toString(),JSONArray.toString(), andJSONWriter.value(Object).A JSONArray is an ordered sequence of values.The JSONException is thrown by the JSON.org classes when things are amiss.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.A JSONObject is an unordered collection of name/value pairs.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 provides a quick and convenient way of producing JSON text.A JSONTokener takes a source string and extracts characters and tokens from it.JSONWriter provides a quick and convenient way of producing JSON text.This provides static methods to convert an XML text into a JSONObject, and to covert a JSONObject into an XML text.The XMLTokener extends the JSONTokener to provide additional methods for the parsing of XML texts.