| Package | Description |
|---|---|
| javax.json | |
| javax.json.spi | |
| javax.json.stream |
| Modifier and Type | Method and Description |
|---|---|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
BigDecimal value)
Add the given BigDecimal value to the JsonObject to be created.
|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
BigInteger value)
Add the given BigInteger value to the JsonObject to be created.
|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
boolean value)
Add the given boolean value to the JsonObject to be created.
|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
double value)
Add the given double value to the JsonObject to be created.
|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
int value)
Add the given int value to the JsonObject to be created.
|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonArrayBuilder builder)
Use the given
JsonArrayBuilder to create a JsonArray which will be
added to the JsonObject to be created by this builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonObjectBuilder builder)
Use the given
JsonObjectBuilder to create a JsonObject which will be
added to the JsonObject to be created by this builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonValue value)
Add the given JsonValue value to the JsonObject to be created.
|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
long value)
Add the given long value to the JsonObject to be created.
|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
String value)
Add the given String value to the JsonObject to be created.
|
default JsonObjectBuilder |
JsonObjectBuilder.addAll(JsonObjectBuilder builder)
Add all of the attributes of the given
JsonObjectBuilder to the current one |
JsonObjectBuilder |
JsonObjectBuilder.addNull(String name)
Add a
JsonValue.NULL value to the JsonObject to be created. |
JsonObjectBuilder |
JsonBuilderFactory.createObjectBuilder() |
static JsonObjectBuilder |
Json.createObjectBuilder()
Create an empty JsonObjectBuilder
|
default JsonObjectBuilder |
JsonBuilderFactory.createObjectBuilder(JsonObject initialData)
Create a JsonObjectBuilder filled with the given initial data.
|
static JsonObjectBuilder |
Json.createObjectBuilder(JsonObject object)
Creates a JSON object builder, initialized with the specified JsonObject.
|
default JsonObjectBuilder |
JsonBuilderFactory.createObjectBuilder(Map<String,Object> initialData)
Create a JsonObjectBuilder filled with the given initial data.
|
static JsonObjectBuilder |
Json.createObjectBuilder(Map<String,Object> map)
Creates a JSON object builder, initialized with the specified Map.
|
default JsonObjectBuilder |
JsonObjectBuilder.remove(String name)
Remove the attribute with the given name from the builder.
|
| Modifier and Type | Method and Description |
|---|---|
default JsonArrayBuilder |
JsonArrayBuilder.add(int index,
JsonObjectBuilder builder) |
JsonArrayBuilder |
JsonArrayBuilder.add(JsonObjectBuilder builder) |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonObjectBuilder builder)
Use the given
JsonObjectBuilder to create a JsonObject which will be
added to the JsonObject to be created by this builder. |
default JsonObjectBuilder |
JsonObjectBuilder.addAll(JsonObjectBuilder builder)
Add all of the attributes of the given
JsonObjectBuilder to the current one |
default JsonArrayBuilder |
JsonArrayBuilder.set(int index,
JsonObjectBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
abstract JsonObjectBuilder |
JsonProvider.createObjectBuilder()
Create an empty JsonObjectBuilder
|
JsonObjectBuilder |
JsonProvider.createObjectBuilder(JsonObject jsonObject)
Creates a JSON object builder, initialized with the specified JsonObject.
|
JsonObjectBuilder |
JsonProvider.createObjectBuilder(Map<String,Object> map)
Creates a JSON object builder, initialized with the specified Map.
|
| Modifier and Type | Method and Description |
|---|---|
static Collector<Map.Entry<String,JsonValue>,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject() |
static Collector<JsonValue,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject(Function<JsonValue,String> keyMapper,
Function<JsonValue,JsonValue> valueMapper) |
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.