Uses of Class
org.json.JSONArray

  • Uses of JSONArray in org.json

    Methods in org.json that return JSONArray
    Modifier and Type
    Method
    Description
    JSONArray.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.
    JSONArray.optJSONArray(int index, JSONArray defaultValue)
    Get the optional JSONArray associated with an index.
    JSONObject.optJSONArray(String key)
    Get an optional JSONArray associated with a key.
    JSONObject.optJSONArray(String key, JSONArray defaultValue)
    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)
    Append a boolean value.
    JSONArray.put(double value)
    Append a double value.
    JSONArray.put(float value)
    Append a float 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, float value)
    Put or replace a float 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.
    JSONArray.put(int index, Object value)
    Put or replace an object value in the JSONArray.
    JSONArray.put(int index, Collection<?> value)
    Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
    JSONArray.put(int index, Map<?,?> value)
    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, JSONParserConfiguration jsonParserConfiguration)
    Put a value in the JSONArray, where the value will be a JSONObject that is produced from a Map.
    JSONArray.put(long value)
    Append an long value.
    JSONArray.put(Object value)
    Append an object value.
    JSONArray.put(Collection<?> value)
    Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
    JSONArray.put(Map<?,?> value)
    Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
    JSONArray.putAll(Iterable<?> iter)
    Put an Iterable's elements in to the JSONArray.
    JSONArray.putAll(Object array)
    Put an array's elements in to the JSONArray.
    JSONArray.putAll(Collection<?> collection)
    Put a collection's elements in to the JSONArray.
    JSONArray.putAll(JSONArray array)
    Put a JSONArray's elements in to the JSONArray.
    static JSONArray
    Produce a JSONArray of strings from a row of comma delimited values.
    static JSONArray
    CDL.rowToJSONArray(JSONTokener x, char delimiter)
    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(String string, char delimiter)
    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, String string, char delimiter)
    Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
    static JSONArray
    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)
    Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
    static JSONArray
    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)
    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(String string, boolean keepStrings)
    Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
    static JSONArray
    Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
    static JSONArray
    Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
    static JSONArray
    JSONML.toJSONArray(XMLTokener x, boolean keepStrings)
    Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
    static JSONArray
    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.
    Methods in org.json with parameters of type JSONArray
    Modifier and Type
    Method
    Description
    JSONArray.optJSONArray(int index, JSONArray defaultValue)
    Get the optional JSONArray associated with an index.
    JSONObject.optJSONArray(String key, JSONArray defaultValue)
    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.
    private static Object
    JSONML.parse(XMLTokener x, boolean arrayForm, JSONArray ja, boolean keepStrings, int currentNestingDepth)
    Parse XML values and store them in a JSONArray.
    private static Object
    JSONML.parse(XMLTokener x, boolean arrayForm, JSONArray ja, JSONMLParserConfiguration config, int currentNestingDepth)
    Parse XML values and store them in a JSONArray.
    JSONArray.putAll(JSONArray array)
    Put a JSONArray's elements in to the JSONArray.
    static JSONObject
    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)
    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
    Produce a comma delimited text row from a JSONArray.
    static String
    CDL.rowToString(JSONArray ja, char delimiter)
    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, String string, char delimiter)
    Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
    static JSONArray
    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)
    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
    CDL.toString(JSONArray ja, char delimiter)
    Produce a comma delimited text from a JSONArray of JSONObjects.
    static String
    CDL.toString(JSONArray names, JSONArray ja)
    Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.
    static String
    CDL.toString(JSONArray names, JSONArray ja, char delimiter)
    Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.
    static String
    JSONML.toString(JSONArray ja)
    Reverse the JSONML transformation, making an XML text from a JSONArray.
    Constructors in org.json with parameters of type JSONArray
    Modifier
    Constructor
    Description
     
    Construct a JSONArray from another JSONArray.