Uses of Class
org.apache.sling.commons.json.JSONArray
Packages that use JSONArray
Package
Description
-
Uses of JSONArray in org.apache.sling.commons.json
Methods in org.apache.sling.commons.json that return JSONArrayModifier and TypeMethodDescriptionJSONArray.getJSONArray
(int index) Deprecated.Get the JSONArray associated with an index.JSONObject.getJSONArray
(String key) Deprecated.Get the JSONArray value associated with a key.JSONObject.names()
Deprecated.Produce a JSONArray containing the names of the elements of this JSONObject.JSONArray.optJSONArray
(int index) Deprecated.Get the optional JSONArray associated with an index.JSONArray.optJSONArray
(int index, JSONArray defaultValue) Deprecated.Get the optional JSONArray associated with an index.JSONObject.optJSONArray
(String key) Deprecated.Get an optional JSONArray associated with a key.JSONObject.optJSONArray
(String key, JSONArray defaultValue) Deprecated.Get an optional JSONArray associated with a key, or the default if there is no such key, or if its value is not a JSONArray.JSONArray.put
(boolean value) Deprecated.Append a boolean value.JSONArray.put
(double value) Deprecated.Append a double value.JSONArray.put
(float value) Deprecated.Append a float value.JSONArray.put
(int value) Deprecated.Append an int value.JSONArray.put
(int index, boolean value) Deprecated.Put or replace a boolean value in the JSONArray.JSONArray.put
(int index, double value) Deprecated.Put or replace a double value.JSONArray.put
(int index, float value) Deprecated.Put or replace a float value.JSONArray.put
(int index, int value) Deprecated.Put or replace an int value.JSONArray.put
(int index, long value) Deprecated.Put or replace a long value.Deprecated.Put or replace an object value in the JSONArray.JSONArray.put
(int index, Collection<?> value) Deprecated.Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Deprecated.Put a value in the JSONArray, where the value will be a JSONObject that is produced from a Map.JSONArray.put
(int index, Map<?, ?> value, org.apache.sling.commons.json.JSONParserConfiguration jsonParserConfiguration) Deprecated.Put a value in the JSONArray, where the value will be a JSONObject that is produced from a Map.JSONArray.put
(long value) Deprecated.Append an long value.Deprecated.Append an object value.JSONArray.put
(Collection<?> value) Deprecated.Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Deprecated.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.Deprecated.Put an Iterable's elements in to the JSONArray.Deprecated.Put an array's elements in to the JSONArray.JSONArray.putAll
(Collection<?> collection) Deprecated.Put a collection's elements in to the JSONArray.Deprecated.Put a JSONArray's elements in to the JSONArray.JSONObject.toJSONArray
(JSONArray names) Deprecated.Produce a JSONArray containing the values of the members of this JSONObject.Methods in org.apache.sling.commons.json with parameters of type JSONArrayModifier and TypeMethodDescriptionJSONArray.optJSONArray
(int index, JSONArray defaultValue) Deprecated.Get the optional JSONArray associated with an index.JSONObject.optJSONArray
(String key, JSONArray defaultValue) Deprecated.Get an optional JSONArray associated with a key, or the default if there is no such key, or if its value is not a JSONArray.Deprecated.Put a JSONArray's elements in to the JSONArray.JSONObject.toJSONArray
(JSONArray names) Deprecated.Produce a JSONArray containing the values of the members of this JSONObject.JSONArray.toJSONObject
(JSONArray names) Deprecated.Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.Constructors in org.apache.sling.commons.json with parameters of type JSONArray -
Uses of JSONArray in org.apache.sling.commons.json.io
Methods in org.apache.sling.commons.json.io with parameters of type JSONArrayModifier and TypeMethodDescriptionDeprecated.Make a string from the contents of this JSONArray.JSONRenderer.prettyPrint
(JSONArray ja, JSONRenderer.Options opt) Deprecated.Pretty-print a JSONArrayDeprecated.Make a JSON text of the supplied JSONArray.Deprecated.Write the contents of the supplied JSONArray as JSON text to a writer.JSONWriter.writeArray
(JSONArray a) Deprecated.Append a JSON Array -
Uses of JSONArray in org.apache.sling.commons.json.util
Methods in org.apache.sling.commons.json.util that return JSONArrayModifier and TypeMethodDescriptionstatic JSONArray
CDL.rowToJSONArray
(JSONTokener x) Deprecated.Produce a JSONArray of strings from a row of comma delimited values.static JSONArray
CDL.rowToJSONArray
(JSONTokener x, char delimiter) Deprecated.Produce a JSONArray of strings from a row of comma delimited values.static JSONArray
CDL.toJSONArray
(String string) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArray
CDL.toJSONArray
(String string, char delimiter) Deprecated.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) Deprecated.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, String string, char delimiter) Deprecated.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) Deprecated.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, char delimiter) Deprecated.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) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArray
CDL.toJSONArray
(JSONTokener x, char delimiter) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.Methods in org.apache.sling.commons.json.util with parameters of type JSONArrayModifier and TypeMethodDescriptionstatic JSONObject
CDL.rowToJSONObject
(JSONArray names, JSONTokener x) Deprecated.Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.static JSONObject
CDL.rowToJSONObject
(JSONArray names, JSONTokener x, char delimiter) Deprecated.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) Deprecated.Produce a comma delimited text row from a JSONArray.static String
CDL.rowToString
(JSONArray ja, char delimiter) Deprecated.Produce a comma delimited text row from a JSONArray.static JSONArray
CDL.toJSONArray
(JSONArray names, String string) Deprecated.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, String string, char delimiter) Deprecated.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) Deprecated.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, char delimiter) Deprecated.Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static String
Deprecated.Produce a comma delimited text from a JSONArray of JSONObjects.static String
Deprecated.Produce a comma delimited text from a JSONArray of JSONObjects.static String
Deprecated.Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.static String
Deprecated.Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.