Uses of Interface
jakarta.json.JsonObjectBuilder
Package
Description
Provides an object model API to process JSON.
Service Provider Interface (SPI) to plug in implementations for
JSON processing objects.
Provides a streaming API to parse and generate
JSON.
-
Uses of JsonObjectBuilder in jakarta.json
Modifier and TypeMethodDescriptionAdds a name/JsonValue#TRUE
or name/JsonValue#FALSE
pair to the JSON object associated with this object builder.Adds a name/JsonNumber
pair to the JSON object associated with this object builder.Adds a name/JsonNumber
pair to the JSON object associated with this object builder.Adds a name/JsonNumber
pair to the JSON object associated with this object builder.JsonObjectBuilder.add
(String name, JsonArrayBuilder builder) Adds a name/JsonArray
pair to the JSON object associated with this object builder.JsonObjectBuilder.add
(String name, JsonObjectBuilder builder) Adds a name/JsonObject
pair to the JSON object associated with this object builder.Adds a name/JsonValue
pair to the JSON object associated with this object builder.Adds a name/JsonString
pair to the JSON object associated with this object builder.JsonObjectBuilder.add
(String name, BigDecimal value) Adds a name/JsonNumber
pair to the JSON object associated with this object builder.JsonObjectBuilder.add
(String name, BigInteger value) Adds a name/JsonNumber
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.Adds a name/JsonValue#NULL
pair to the JSON object associated with this object builder where the value isnull
.static JsonObjectBuilder
Json.createObjectBuilder()
Creates a JSON object builderstatic JsonObjectBuilder
Json.createObjectBuilder
(JsonObject object) Creates a JSON object builder, initialized with the specified object.static JsonObjectBuilder
Json.createObjectBuilder
(Map<String, ?> map) Creates a JSON object builder, initialized with the data from specifiedmap
.JsonBuilderFactory.createObjectBuilder()
Creates aJsonObjectBuilder
instance that is used to buildJsonObject
.default JsonObjectBuilder
JsonBuilderFactory.createObjectBuilder
(JsonObject object) Creates aJsonObjectBuilder
instance, initialized with an object.default JsonObjectBuilder
JsonBuilderFactory.createObjectBuilder
(Map<String, Object> object) Creates aJsonObjectBuilder
instance, initialized with the specified object.default JsonObjectBuilder
Remove the name/value pair from the JSON object associated with this object builder if it is present.Modifier and TypeMethodDescriptiondefault JsonArrayBuilder
JsonArrayBuilder.add
(int index, JsonObjectBuilder builder) Adds aJsonObject
from an object builder to the array at the specified position.JsonArrayBuilder.add
(JsonObjectBuilder builder) Adds aJsonObject
from an object builder to the array.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 aJsonObject
from an object builder at the specified position. -
Uses of JsonObjectBuilder in jakarta.json.spi
Modifier and TypeMethodDescriptionabstract JsonObjectBuilder
JsonProvider.createObjectBuilder()
Creates a JSON object builder.JsonProvider.createObjectBuilder
(JsonObject object) Creates a JSON object builder, initialized with the specified object.JsonProvider.createObjectBuilder
(Map<String, ?> map) Creates a JSON object builder, initialized with the data from specifiedmap
. -
Uses of JsonObjectBuilder in jakarta.json.stream
Modifier and TypeMethodDescriptionJsonCollectors.toJsonObject()
Constructs ajava.util.stream.Collector
that accumulates the inputMap.Entry<String,JsonValue>
elements into aJsonObject
.JsonCollectors.toJsonObject
(Function<JsonValue, String> keyMapper, Function<JsonValue, JsonValue> valueMapper) Constructs ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonObject
.