Example usage for Java io.vertx.core.json JsonArray fields, constructors, methods, implement or subclass
The text is from its open source code.
JsonArray() Create an empty instance | |
JsonArray(String json) Create an instance from a String of JSON, this string must be a valid array otherwise an exception will be thrown. | |
JsonArray(List list) Create an instance from a List. | |
JsonArray(Buffer buf) Create an instance from a Buffer of JSON. |
JsonArray | add(Object value) Add an Object to the JSON array. |
JsonArray | addAll(JsonArray array) Appends all of the elements in the specified array to the end of this JSON array. |
JsonArray | addNull() Add a null value to the JSON array. |
JsonArray | clear() Remove all entries from the JSON array |
boolean | contains(Object value) Does the JSON array contain the specified value? |
JsonArray | copy() Make a copy of the JSON array |
String | encode() Encode the JSON array to a string |
String | encodePrettily() Encode the JSON array prettily as a string |
Boolean | getBoolean(int pos) Get the Boolean at position pos in the array, |
Double | getDouble(int pos) Get the Double at position pos in the array, |
Integer | getInteger(int pos) Get the Integer at position pos in the array, |
JsonArray | getJsonArray(int pos) Get the JsonArray at position pos in the array. |
JsonObject | getJsonObject(int pos) Get the JsonObject at position pos in the array. |
List | getList() Get the unerlying List |
Long | getLong(int pos) Get the Long at position pos in the array, |
String | getString(int pos) Get the String at position pos in the array, |
Object | getValue(int pos) Get the value with the specified key, as an Object with types respecting the limitations of JSON. |
boolean | isEmpty() Are there zero items in this JSON array? |
Iterator | iterator() Get an Iterator over the values in the JSON array |
boolean | remove(Object value) Remove the specified value from the JSON array. |
Object | remove(int pos) Remove the value at the specified position in the JSON array. |
int | size() Get the number of values in this JSON array |
Stream | stream() Get a Stream over the entries in the JSON array |
String | toString() |