JsonArray.add(boolean value)
Appends the JSON representation of the specified boolean
value to the end of this array.
JsonArray.add(double value)
Appends the JSON representation of the specified double
value to the end of this array.
JsonArray.add(float value)
Appends the JSON representation of the specified float
value to the end of this array.
Appends the JSON representation of the specified int
value to the end of this array.
JsonArray.add(long value)
Appends the JSON representation of the specified long
value to the end of this array.
Appends the specified JSON value to the end of this array.
Appends the JSON representation of the specified string to the end of this array.
Creates a new empty JsonArray.
Json.array(boolean... values)
Creates a new JsonArray that contains the JSON representations of the given boolean
values.
Json.array(double... values)
Creates a new JsonArray that contains the JSON representations of the given double
values.
Json.array(float... values)
Creates a new JsonArray that contains the JSON representations of the given float
values.
Json.array(int... values)
Creates a new JsonArray that contains the JSON representations of the given int
values.
Json.array(long... values)
Creates a new JsonArray that contains the JSON representations of the given long
values.
Creates a new JsonArray that contains the JSON representations of the given strings.
Returns this JSON value as
JsonArray
, assuming that this value represents a JSON array.
Removes the element at the specified index from this array.
JsonArray.set(int index,
boolean value)
Replaces the element at the specified position in this array with the JSON representation of the specified
boolean
value.
JsonArray.set(int index,
double value)
Replaces the element at the specified position in this array with the JSON representation of the specified
double
value.
JsonArray.set(int index,
float value)
Replaces the element at the specified position in this array with the JSON representation of the specified
float
value.
JsonArray.set(int index,
int value)
Replaces the element at the specified position in this array with the JSON representation of the specified
int
value.
JsonArray.set(int index,
long value)
Replaces the element at the specified position in this array with the JSON representation of the specified
long
value.
Replaces the element at the specified position in this array with the specified JSON value.
Replaces the element at the specified position in this array with the JSON representation of the specified string.
Returns an unmodifiable wrapper for the specified JsonArray.