public interface JSONArray extends Externalizable, Iterable, JSONSerializable
Modifier and Type | Method and Description |
---|---|
Object |
get(int index) |
boolean |
getBoolean(int index) |
double |
getDouble(int index) |
int |
getInt(int index) |
JSONArray |
getJSONArray(int index) |
JSONObject |
getJSONObject(int index) |
long |
getLong(int index) |
String |
getString(int index) |
boolean |
isNull(int index) |
String |
join(String separator) |
int |
length() |
JSONArray |
put(boolean value) |
JSONArray |
put(double value) |
JSONArray |
put(int value) |
JSONArray |
put(JSONArray value) |
JSONArray |
put(JSONObject value) |
JSONArray |
put(long value) |
JSONArray |
put(Object value) |
JSONArray |
put(String value) |
String |
toString() |
String |
toString(int indentFactor) |
Writer |
write(Writer writer) |
toJSONString
Object get(int index)
boolean getBoolean(int index)
double getDouble(int index)
int getInt(int index)
JSONArray getJSONArray(int index)
JSONObject getJSONObject(int index)
long getLong(int index)
String getString(int index)
boolean isNull(int index)
String join(String separator) throws JSONException
JSONException
int length()
JSONArray put(boolean value)
JSONArray put(double value)
JSONArray put(int value)
JSONArray put(JSONObject value)
JSONArray put(long value)
JSONArray put(Object value)
JSONArray put(String value)
String toString()
toString
in class Object
String toString(int indentFactor) throws JSONException
JSONException
Writer write(Writer writer) throws JSONException
JSONException