Uses of Class
org.opencms.json.JSONArray
Package
Description
Classes to create JSON objects and arrays for JavaScript in OpenCms.
Base classes for the editors (WYSIWYG, plain text, XML content) used in the OpenCms Workplace.
-
Uses of JSONArray in org.opencms.json
Modifier and TypeMethodDescriptionJSONArray.getJSONArray
(int index) Get the JSONArray associated with an index.JSONObject.getJSONArray
(String key) Get the JSONArray value associated with a key.JSONObject.names()
Produce a JSONArray containing the names of the elements of this JSONObject.JSONArray.optJSONArray
(int index) Get the optional JSONArray associated with an index.JSONObject.optJSONArray
(String key) Get an optional JSONArray associated with a key.JSONArray.put
(boolean value) Append a boolean value.JSONArray.put
(double value) Append a double value.JSONArray.put
(int value) Append an int value.JSONArray.put
(int index, boolean value) Put or replace a boolean value in the JSONArray.JSONArray.put
(int index, double value) Put or replace a double value.JSONArray.put
(int index, int value) Put or replace an int value.JSONArray.put
(int index, long value) Put or replace a long value.Put or replace an object value in the JSONArray.JSONArray.put
(int index, Collection<Object> value) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONArray.put
(long value) Append an long value.Append an object value.JSONArray.put
(Collection<Object> value) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.static JSONArray
CDL.rowToJSONArray
(JSONTokener x) Produce a JSONArray of strings from a row of comma delimited values.static JSONArray
CDL.toJSONArray
(String string) Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArray
CDL.toJSONArray
(JSONArray names, String string) Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static JSONArray
CDL.toJSONArray
(JSONArray names, JSONTokener x) Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static JSONArray
CDL.toJSONArray
(JSONTokener x) Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArray
JSONML.toJSONArray
(String string) Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.static JSONArray
JSONML.toJSONArray
(XMLTokener x) Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.JSONObject.toJSONArray
(JSONArray names) Produce a JSONArray containing the values of the members of this JSONObject.Modifier and TypeMethodDescriptionvoid
Appends values from another JSON array.static JSONObject
CDL.rowToJSONObject
(JSONArray names, JSONTokener x) Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.static String
CDL.rowToString
(JSONArray ja) Produce a comma delimited text row from a JSONArray.static JSONArray
CDL.toJSONArray
(JSONArray names, String string) Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static JSONArray
CDL.toJSONArray
(JSONArray names, JSONTokener x) Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.JSONObject.toJSONArray
(JSONArray names) Produce a JSONArray containing the values of the members of this JSONObject.JSONArray.toJSONObject
(JSONArray names) Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.static String
Produce a comma delimited text from a JSONArray of JSONObjects.static String
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.static String
Reverse the JSONML transformation, making an XML text from a JSONArray. -
Uses of JSONArray in org.opencms.workplace.editors
Modifier and TypeMethodDescriptionCmsXmlContentEditor.buildElementChoices
(String elementName, boolean choiceType, boolean checkChoice) Returns the JSON array with information about the choices of a given element.