Interface JsonArrayBuilder
Creates Json arrays. Abstracted from JavaEE/glassfisch.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionadd(boolean value) Adds a value to the JSON object associated with this array builder.add(double value) Adds a value to the JSON object associated with this array builder.add(int value) Adds a value to the JSON object associated with this array builder.Adds a value to the JSON object associated with this array builder.add(JsonArrayBuilder builder) Adds a value to the JSON object associated with this array builder via an array builder.add(JsonNumber value) Adds a value to the JSON object associated with this array builder.add(JsonObject value) Adds a value to the JSON object associated with this array builder.add(JsonObjectBuilder builder) Adds a value to the JSON object associated with this array builder via an object builder.add(JsonString value) Adds a value to the JSON object associated with this array builder.Adds a value to the JSON object associated with this array builder.addNull()Adds a null value to the JSON object associated with this array builder.
-
Method Details
-
add
Adds a value to the JSON object associated with this array builder.- Parameters:
value- the value to add- Returns:
- this for chaining
-
add
Adds a value to the JSON object associated with this array builder.- Parameters:
value- the value to add- Returns:
- this for chaining
-
add
Adds a value to the JSON object associated with this array builder.- Parameters:
value- the value to add- Returns:
- this for chaining
-
add
Adds a value to the JSON object associated with this array builder.- Parameters:
value- the value to add- Returns:
- this for chaining
-
add
Adds a value to the JSON object associated with this array builder.- Parameters:
value- the value to add- Returns:
- this for chaining
-
add
Adds a value to the JSON object associated with this array builder.- Parameters:
value- the value to add- Returns:
- this for chaining
-
add
Adds a value to the JSON object associated with this array builder.- Parameters:
value- the value to add- Returns:
- this for chaining
-
add
Adds a value to the JSON object associated with this array builder.- Parameters:
value- the value to add- Returns:
- this for chaining
-
addNull
JsonArrayBuilder addNull()Adds a null value to the JSON object associated with this array builder.- Returns:
- this for chaining
-
add
Adds a value to the JSON object associated with this array builder via an array builder.- Parameters:
builder- the object builder- Returns:
- this for chaining
-
add
Adds a value to the JSON object associated with this array builder via an object builder.- Parameters:
builder- the object builder- Returns:
- this for chaining
-