public class JsonArray extends Object
| Constructor and Description |
|---|
JsonArray(JsonObject jsonObject,
String key)
Constructs a builder for creating json arrays.
|
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
add(Object value)
Adds an entry into the json array.
|
JsonObject |
addLast(Object value)
Adds a final entry into the json array.
|
JsonObject |
build()
Builds the json array and inserts it into its parent json object.
|
int |
size()
Gets the size of this json array.
|
public JsonArray(JsonObject jsonObject, String key)
jsonObject - The json object builder instance.key - The key this json array will be inserted into the json object against.public JsonArray add(Object value)
value - The value.public JsonObject addLast(Object value)
value - The value.public JsonObject build()
public int size()
Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.