Uses of Interface
javax.json.JsonObject
Packages that use JsonObject
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 JsonObject in javax.json
Classes in javax.json that implement JsonObjectModifier and TypeClassDescription(package private) final class
Private implementation of immutableJsonObject
.Fields in javax.json declared as JsonObjectModifier and TypeFieldDescriptionstatic final JsonObject
JsonValue.EMPTY_JSON_OBJECT
The empty JSON object.Methods in javax.json that return JsonObjectModifier and TypeMethodDescriptiondefault JsonObject
JsonValue.asJsonObject()
Return the JsonValue as a JsonObjectJsonObjectBuilder.build()
Returns the JSON object associated with this object builder.EmptyArray.getJsonObject
(int index) EmptyObject.getJsonObject
(String name) JsonArray.getJsonObject
(int index) Returns the object value at the specified position in this array.JsonObject.getJsonObject
(String name) Returns the object value to which the specified name is mapped.JsonReader.readObject()
Returns a JSON object that is represented in the input source.Methods in javax.json with parameters of type JsonObjectModifier and TypeMethodDescriptionstatic JsonObjectBuilder
Json.createObjectBuilder
(JsonObject object) Creates a JSON object builder, initialized with the specified object.default JsonObjectBuilder
JsonBuilderFactory.createObjectBuilder
(JsonObject object) Creates aJsonObjectBuilder
instance, initialized with an object.void
JsonWriter.writeObject
(JsonObject object) Writes the specified JSONobject
to the output source. -
Uses of JsonObject in javax.json.spi
Methods in javax.json.spi with parameters of type JsonObjectModifier and TypeMethodDescriptionJsonProvider.createObjectBuilder
(JsonObject object) Creates a JSON object builder, initialized with the specified object. -
Uses of JsonObject in javax.json.stream
Methods in javax.json.stream that return JsonObjectModifier and TypeMethodDescriptiondefault JsonObject
JsonParser.getObject()
Returns aJsonObject
and advances the parser to the correspondingEND_OBJECT
.Methods in javax.json.stream that return types with arguments of type JsonObjectModifier and TypeMethodDescriptionstatic Collector
<JsonValue, Map<String, JsonArrayBuilder>, JsonObject> JsonCollectors.groupingBy
(Function<JsonValue, String> classifier) Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static <T extends JsonArrayBuilder>
Collector<JsonValue, Map<String, T>, JsonObject> JsonCollectors.groupingBy
(Function<JsonValue, String> classifier, Collector<JsonValue, T, JsonArray> downstream) Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.JsonCollectors.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
.Methods in javax.json.stream with parameters of type JsonObjectModifier and TypeMethodDescriptionJsonParserFactory.createParser
(JsonObject obj) Creates a JSON parser from the specified JSON object. -
Uses of JsonObject in org.glassfish.json
Classes in org.glassfish.json that implement JsonObjectFields in org.glassfish.json declared as JsonObjectMethods in org.glassfish.json that return JsonObjectModifier and TypeMethodDescriptionJsonObjectBuilderImpl.JsonObjectImpl.asJsonObject()
JsonObjectBuilderImpl.build()
JsonArrayBuilderImpl.JsonArrayImpl.getJsonObject
(int index) JsonObjectBuilderImpl.JsonObjectImpl.getJsonObject
(String name) JsonParserImpl.getObject()
private JsonObject
JsonParserImpl.getObject
(JsonObjectBuilder builder) JsonReaderImpl.readObject()
NodeReference.ObjectReference.remove()
Methods in org.glassfish.json with parameters of type JsonObjectModifier and TypeMethodDescriptionprivate JsonStructure
JsonPatchImpl.apply
(JsonStructure target, JsonObject operation) Applies a JSON Patch operation to the target.JsonBuilderFactoryImpl.createObjectBuilder
(JsonObject object) JsonProviderImpl.createObjectBuilder
(JsonObject object) JsonParserFactoryImpl.createParser
(JsonObject object) private void
JsonPatchImpl.DiffGenerator.diffObject
(String path, JsonObject source, JsonObject target) private JsonPointer
JsonPatchImpl.getPointer
(JsonObject operation, String member) private JsonValue
JsonPatchImpl.getValue
(JsonObject operation) static NodeReference
NodeReference.of
(JsonObject object, String name) Returns aNodeReference
for a name/value pair in a JSON object.(package private) static String
JsonMessages.POINTER_MAPPING_MISSING
(JsonObject object, String key) void
JsonWriterImpl.writeObject
(JsonObject object) Constructors in org.glassfish.json with parameters of type JsonObjectModifierConstructorDescription(package private)
JsonObjectBuilderImpl
(JsonObject object, BufferPool bufferPool) (package private)
JsonStructureParser
(JsonObject object) (package private)
ObjectReference
(JsonObject object, String key) (package private)
ObjectScope
(JsonObject object)