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 jsonArray) |
JSONArray |
put(JSONObject jsonObject) |
JSONArray |
put(long value) |
JSONArray |
put(Object value) |
JSONArray |
put(String value) |
JSONArray |
put(com.liferay.petra.function.UnsafeSupplier<Object,Exception> valueUnsafeSupplier) |
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 jsonObject)
JSONArray put(long value)
JSONArray put(Object value)
JSONArray put(String value)
JSONArray put(com.liferay.petra.function.UnsafeSupplier<Object,Exception> valueUnsafeSupplier)
String toString()
toString
in class Object
String toString(int indentFactor) throws JSONException
JSONException
Writer write(Writer writer) throws JSONException
JSONException