Uses of Interface
jakarta.json.JsonObjectBuilder
-
Packages that use JsonObjectBuilder 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.org.glassfish.json -
-
Uses of JsonObjectBuilder in jakarta.json
Methods in jakarta.json that return JsonObjectBuilder Modifier and Type Method Description 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, long 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, String value)
Adds a name/JsonString
pair to the JSON object associated with this object builder.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.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 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,Object> map)
Creates a JSON object builder, initialized with the data from specifiedmap
.JsonObjectBuilder
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
JsonObjectBuilder. remove(String name)
Remove the name/value pair from the JSON object associated with this object builder if it is present.Methods in jakarta.json with parameters of type JsonObjectBuilder Modifier and Type Method Description default JsonArrayBuilder
JsonArrayBuilder. add(int index, JsonObjectBuilder builder)
Adds aJsonObject
from an object builder to the array at the specified position.JsonArrayBuilder
JsonArrayBuilder. add(JsonObjectBuilder builder)
Adds aJsonObject
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 aJsonObject
from an object builder at the specified position. -
Uses of JsonObjectBuilder in jakarta.json.spi
Methods in jakarta.json.spi that return JsonObjectBuilder Modifier and Type Method 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 specifiedmap
. -
Uses of JsonObjectBuilder in jakarta.json.stream
Methods in jakarta.json.stream that return types with arguments of type JsonObjectBuilder Modifier and Type Method Description static Collector<Map.Entry<String,JsonValue>,JsonObjectBuilder,JsonObject>
JsonCollectors. toJsonObject()
Constructs ajava.util.stream.Collector
that accumulates the inputMap.Entry<String,JsonValue>
elements into aJsonObject
.static Collector<JsonValue,JsonObjectBuilder,JsonObject>
JsonCollectors. toJsonObject(Function<JsonValue,String> keyMapper, Function<JsonValue,JsonValue> valueMapper)
Constructs ajava.util.stream.Collector
that accumulates the inputJsonValue
elements into aJsonObject
. -
Uses of JsonObjectBuilder in org.glassfish.json
Methods in org.glassfish.json that return JsonObjectBuilder Modifier and Type Method Description JsonObjectBuilder
JsonProviderImpl. createObjectBuilder()
JsonObjectBuilder
JsonProviderImpl. createObjectBuilder(JsonObject object)
JsonObjectBuilder
JsonProviderImpl. createObjectBuilder(Map<String,Object> map)
-