Package | Description |
---|---|
jakarta.json |
Provides an object model API to process JSON.
|
jakarta.json.spi |
Service Provider Interface (SPI) to plug in implementations for
JSON processing objects.
|
jakarta.json.stream |
Provides a streaming API to parse and generate
JSON.
|
Modifier and Type | Method and Description |
---|---|
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
BigDecimal value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
BigInteger value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
boolean value)
Adds a name/
JsonValue#TRUE or name/JsonValue#FALSE pair
to the JSON object associated with this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
double value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
int value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonArrayBuilder builder)
Adds a name/
JsonArray pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonObjectBuilder builder)
Adds a name/
JsonObject pair to the JSON object associated
with this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonValue value)
Adds a name/
JsonValue pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
long value)
Adds a name/
JsonNumber pair to the JSON object associated with
this object builder. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
String value)
Adds a name/
JsonString pair to the JSON object associated with
this object builder. |
default JsonObjectBuilder |
JsonObjectBuilder.addAll(JsonObjectBuilder builder)
Adds all name/value pairs in the JSON object associated with the specified
object builder to the JSON object associated with this object builder.
|
JsonObjectBuilder |
JsonObjectBuilder.addNull(String name)
Adds a name/
JsonValue#NULL pair to the JSON object associated
with this object builder where the value is null . |
JsonObjectBuilder |
JsonBuilderFactory.createObjectBuilder()
Creates a
JsonObjectBuilder instance that is used to build
JsonObject . |
static JsonObjectBuilder |
Json.createObjectBuilder()
Creates a JSON object builder
|
default JsonObjectBuilder |
JsonBuilderFactory.createObjectBuilder(JsonObject object)
Creates a
JsonObjectBuilder instance, initialized with an object. |
static JsonObjectBuilder |
Json.createObjectBuilder(JsonObject object)
Creates a JSON object builder, initialized with the specified object.
|
default JsonObjectBuilder |
JsonBuilderFactory.createObjectBuilder(Map<String,Object> object)
Creates a
JsonObjectBuilder instance, initialized with the specified object. |
static JsonObjectBuilder |
Json.createObjectBuilder(Map<String,Object> map)
Creates a JSON object builder, initialized with the data from specified
map . |
default JsonObjectBuilder |
JsonObjectBuilder.remove(String name)
Remove the name/value pair from the JSON object associated with this
object builder if it is present.
|
Modifier and Type | Method and Description |
---|---|
default JsonArrayBuilder |
JsonArrayBuilder.add(int index,
JsonObjectBuilder builder)
Adds a
JsonObject from an object builder to the array at the specified position. |
JsonArrayBuilder |
JsonArrayBuilder.add(JsonObjectBuilder builder)
Adds a
JsonObject from an object builder to the array. |
JsonObjectBuilder |
JsonObjectBuilder.add(String name,
JsonObjectBuilder builder)
Adds a name/
JsonObject pair to the JSON object associated
with this object builder. |
default JsonObjectBuilder |
JsonObjectBuilder.addAll(JsonObjectBuilder builder)
Adds all name/value pairs in the JSON object associated with the specified
object builder to the JSON object associated with this object builder.
|
default JsonArrayBuilder |
JsonArrayBuilder.set(int index,
JsonObjectBuilder builder)
Replaces a value in the array with the specified value as a
JsonObject from an object builder at the specified position. |
Modifier and Type | Method and Description |
---|---|
abstract JsonObjectBuilder |
JsonProvider.createObjectBuilder()
Creates a JSON object builder.
|
JsonObjectBuilder |
JsonProvider.createObjectBuilder(JsonObject object)
Creates a JSON object builder, initialized with the specified object.
|
JsonObjectBuilder |
JsonProvider.createObjectBuilder(Map<String,Object> map)
Creates a JSON object builder, initialized with the data from specified
map . |
Modifier and Type | Method and Description |
---|---|
static Collector<Map.Entry<String,JsonValue>,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject()
Constructs a
java.util.stream.Collector that accumulates the input Map.Entry<String,JsonValue>
elements into a JsonObject . |
static Collector<JsonValue,JsonObjectBuilder,JsonObject> |
JsonCollectors.toJsonObject(Function<JsonValue,String> keyMapper,
Function<JsonValue,JsonValue> valueMapper)
Constructs a
java.util.stream.Collector that accumulates the input JsonValue
elements into a JsonObject . |
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.