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 JsonObjectBuilderJsonObjectBuilder. add(String name, boolean value)Adds a name/JsonValue#TRUEor name/JsonValue#FALSEpair to the JSON object associated with this object builder.JsonObjectBuilderJsonObjectBuilder. add(String name, double value)Adds a name/JsonNumberpair to the JSON object associated with this object builder.JsonObjectBuilderJsonObjectBuilder. add(String name, int value)Adds a name/JsonNumberpair to the JSON object associated with this object builder.JsonObjectBuilderJsonObjectBuilder. add(String name, long value)Adds a name/JsonNumberpair to the JSON object associated with this object builder.JsonObjectBuilderJsonObjectBuilder. add(String name, JsonArrayBuilder builder)Adds a name/JsonArraypair to the JSON object associated with this object builder.JsonObjectBuilderJsonObjectBuilder. add(String name, JsonObjectBuilder builder)Adds a name/JsonObjectpair to the JSON object associated with this object builder.JsonObjectBuilderJsonObjectBuilder. add(String name, JsonValue value)Adds a name/JsonValuepair to the JSON object associated with this object builder.JsonObjectBuilderJsonObjectBuilder. add(String name, String value)Adds a name/JsonStringpair to the JSON object associated with this object builder.JsonObjectBuilderJsonObjectBuilder. add(String name, BigDecimal value)Adds a name/JsonNumberpair to the JSON object associated with this object builder.JsonObjectBuilderJsonObjectBuilder. add(String name, BigInteger value)Adds a name/JsonNumberpair to the JSON object associated with this object builder.default JsonObjectBuilderJsonObjectBuilder. 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.JsonObjectBuilderJsonObjectBuilder. addNull(String name)Adds a name/JsonValue#NULLpair to the JSON object associated with this object builder where the value isnull.static JsonObjectBuilderJson. createObjectBuilder()Creates a JSON object builderstatic JsonObjectBuilderJson. createObjectBuilder(JsonObject object)Creates a JSON object builder, initialized with the specified object.static JsonObjectBuilderJson. createObjectBuilder(Map<String,Object> map)Creates a JSON object builder, initialized with the data from specifiedmap.JsonObjectBuilderJsonBuilderFactory. createObjectBuilder()Creates aJsonObjectBuilderinstance that is used to buildJsonObject.default JsonObjectBuilderJsonBuilderFactory. createObjectBuilder(JsonObject object)Creates aJsonObjectBuilderinstance, initialized with an object.default JsonObjectBuilderJsonBuilderFactory. createObjectBuilder(Map<String,Object> object)Creates aJsonObjectBuilderinstance, initialized with the specified object.default JsonObjectBuilderJsonObjectBuilder. 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 JsonArrayBuilderJsonArrayBuilder. add(int index, JsonObjectBuilder builder)Adds aJsonObjectfrom an object builder to the array at the specified position.JsonArrayBuilderJsonArrayBuilder. add(JsonObjectBuilder builder)Adds aJsonObjectfrom an object builder to the array.JsonObjectBuilderJsonObjectBuilder. add(String name, JsonObjectBuilder builder)Adds a name/JsonObjectpair to the JSON object associated with this object builder.default JsonObjectBuilderJsonObjectBuilder. 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 JsonArrayBuilderJsonArrayBuilder. set(int index, JsonObjectBuilder builder)Replaces a value in the array with the specified value as aJsonObjectfrom 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 JsonObjectBuilderJsonProvider. createObjectBuilder()Creates a JSON object builder.JsonObjectBuilderJsonProvider. createObjectBuilder(JsonObject object)Creates a JSON object builder, initialized with the specified object.JsonObjectBuilderJsonProvider. 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.Collectorthat 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.Collectorthat accumulates the inputJsonValueelements into aJsonObject. -
Uses of JsonObjectBuilder in org.glassfish.json
Methods in org.glassfish.json that return JsonObjectBuilder Modifier and Type Method Description JsonObjectBuilderJsonProviderImpl. createObjectBuilder()JsonObjectBuilderJsonProviderImpl. createObjectBuilder(JsonObject object)JsonObjectBuilderJsonProviderImpl. createObjectBuilder(Map<String,Object> map)
-