|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use JSONArray | |
---|---|
net.sf.json | the core of the library |
net.sf.json.util | Miscelaneous utilities |
net.sf.json.xml | Utilities for trasforming JSON to XML and back. |
Uses of JSONArray in net.sf.json |
---|
Methods in net.sf.json that return JSONArray | |
---|---|
static JSONArray |
JSONArray.fromArray(java.lang.Object[] array)
Creates a JSONArray from a java array. The java array can be multidimensional. |
static JSONArray |
JSONArray.fromCollection(java.util.Collection collection)
Creates a JSONArray from a Collection. Its elements can be maps, POJOs, java arrays (primitive & object), collections. |
static JSONArray |
JSONArray.fromJSONString(JSONString string)
Creates a JSONArray from a JSONString. |
static JSONArray |
JSONArray.fromJSONTokener(JSONTokener tokener)
Creates a JSONArray from a JSONTokener. |
static JSONArray |
JSONArray.fromObject(java.lang.Object object)
Creates a JSONArray. Inspects the object type to call the correct JSONArray factory method. |
static JSONArray |
JSONArray.fromString(java.lang.String string)
Constructs a JSONArray from a string in JSON format. |
JSONArray |
JSONArray.getJSONArray(int index)
Get the JSONArray associated with an index. |
JSONArray |
JSONObject.getJSONArray(java.lang.String key)
Get the JSONArray value associated with a key. |
JSONArray |
JSONObject.names()
Produce a JSONArray containing the names of the elements of this JSONObject. |
JSONArray |
JSONArray.optJSONArray(int index)
Get the optional JSONArray associated with an index. |
JSONArray |
JSONObject.optJSONArray(java.lang.String key)
Get an optional JSONArray associated with a key. |
JSONArray |
JSONArray.put(boolean value)
Append a boolean value. |
JSONArray |
JSONArray.put(java.util.Collection value)
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection. |
JSONArray |
JSONArray.put(double value)
Append a double value. |
JSONArray |
JSONArray.put(int value)
Append an int value. |
JSONArray |
JSONArray.put(int index,
boolean value)
Put or replace a boolean value in the JSONArray. |
JSONArray |
JSONArray.put(int index,
java.util.Collection value)
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection. |
JSONArray |
JSONArray.put(int index,
double value)
Put or replace a double value. |
JSONArray |
JSONArray.put(int index,
int value)
Put or replace an int value. |
JSONArray |
JSONArray.put(int index,
long value)
Put or replace a long value. |
JSONArray |
JSONArray.put(int index,
java.util.Map value)
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map. |
JSONArray |
JSONArray.put(int index,
java.lang.Object value)
Put or replace an object value in the JSONArray. |
JSONArray |
JSONArray.put(int index,
java.lang.String value)
Put or replace a String value in the JSONArray. |
JSONArray |
JSONArray.put(JSON value)
Append an JSON value. |
JSONArray |
JSONArray.put(JSONString value)
Append an JSONString value. |
JSONArray |
JSONArray.put(long value)
Append an long value. |
JSONArray |
JSONArray.put(java.util.Map value)
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map. |
JSONArray |
JSONArray.put(java.lang.Object value)
Append an object value. |
JSONArray |
JSONArray.put(java.lang.String value)
Append a String value. |
JSONArray |
JSONObject.toJSONArray(JSONArray names)
Produce a JSONArray containing the values of the members of this JSONObject. |
Methods in net.sf.json with parameters of type JSONArray | |
---|---|
static int[] |
JSONArray.getDimensions(JSONArray jsonArray)
Returns the number of dimensions suited for a java array. |
static java.lang.Object[] |
JSONArray.toArray(JSONArray jsonArray)
Creates a java array from a JSONArray. |
static java.lang.Object[] |
JSONArray.toArray(JSONArray jsonArray,
java.lang.Class objectClass)
Creates a java array from a JSONArray. |
static java.lang.Object[] |
JSONArray.toArray(JSONArray jsonArray,
java.lang.Class objectClass,
java.util.Map classMap)
Creates a java array from a JSONArray. Any attribute is a JSONObject and matches a key in the classMap, it will be converted to that target class. The classMap has the following conventions: Every key must be an String. Every value must be a Class. A key may be a regular expression. |
JSONArray |
JSONObject.toJSONArray(JSONArray names)
Produce a JSONArray containing the values of the members of this JSONObject. |
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray. |
static java.util.List |
JSONArray.toList(JSONArray jsonArray)
Creates a List from a JSONArray. |
static java.util.List |
JSONArray.toList(JSONArray jsonArray,
java.lang.Class objectClass)
Creates a List from a JSONArray. |
static java.util.List |
JSONArray.toList(JSONArray jsonArray,
java.lang.Class objectClass,
java.util.Map classMap)
Creates a List from a JSONArray. Any attribute is a JSONObject and matches a key in the classMap, it will be converted to that target class. The classMap has the following conventions: Every key must be an String. Every value must be a Class. A key may be a regular expression. |
Constructors in net.sf.json with parameters of type JSONArray | |
---|---|
JSONArray(JSONArray jsonArray)
Construct a JSONArray from another JSONArray. This method will return a shallow copy of the input array. |
Uses of JSONArray in net.sf.json.util |
---|
Methods in net.sf.json.util that return JSONArray | |
---|---|
static JSONArray |
CDL.rowToJSONArray(JSONTokener x)
Produce a JSONArray of strings from a row of comma delimited values. |
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(JSONArray names,
java.lang.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(JSONTokener x)
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names. |
static JSONArray |
CDL.toJSONArray(java.lang.String string)
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names. |
Methods in net.sf.json.util with parameters of type JSONArray | |
---|---|
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 java.lang.String |
CDL.rowToString(JSONArray ja)
Produce a comma delimited text row from a JSONArray. |
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(JSONArray names,
java.lang.String string)
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names. |
static java.lang.String |
CDL.toString(JSONArray ja)
Produce a comma delimited text from a JSONArray of JSONObjects. |
static java.lang.String |
CDL.toString(JSONArray names,
JSONArray ja)
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names. |
Uses of JSONArray in net.sf.json.xml |
---|
Methods in net.sf.json.xml that return JSONArray | |
---|---|
static JSONArray |
XMLSerializer.readArray(java.lang.String xml)
Creates a JSONArray from a XML string. |
Methods in net.sf.json.xml with parameters of type JSONArray | |
---|---|
static java.lang.String |
XMLSerializer.write(JSONArray jsonArray)
Writes a JSONArray into a XML string. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |