public final class JsonArray extends JsonObjectOrArray
Constructor and Description |
---|
JsonArray() |
Modifier and Type | Method and Description |
---|---|
JsonArray |
add(java.lang.Object value)
Add the specified value to the array, at the end.
|
java.lang.Object |
get(int index)
Return the value at the specified 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) |
java.lang.String |
getString(int index) |
int |
size()
Return the number of values in the array.
|
toString, toUtf8Bytes, write
public int size()
public java.lang.Object get(int index)
index
- index of item in arraypublic boolean getBoolean(int index)
public java.lang.String getString(int index)
public int getInt(int index)
public long getLong(int index)
public double getDouble(int index)
public JsonObject getJsonObject(int index)
public JsonArray getJsonArray(int index)
public JsonArray add(java.lang.Object value)
value
- value to add