Uses of Interface
javax.json.JsonObject
-
Packages that use JsonObject Package Description javax.json Provides an object model API to process JSON.javax.json.spi Service Provider Interface (SPI) to plug in implementations for JSON processing objects.javax.json.stream Provides a streaming API to parse and generate JSON.org.glassfish.json -
-
Uses of JsonObject in javax.json
Classes in javax.json that implement JsonObject Modifier and Type Class Description (package private) class
EmptyObject
Private implementation of immutableJsonObject
.Fields in javax.json declared as JsonObject Modifier and Type Field Description static JsonObject
JsonValue. EMPTY_JSON_OBJECT
The empty JSON object.Methods in javax.json that return JsonObject Modifier and Type Method Description default JsonObject
JsonValue. asJsonObject()
Return the JsonValue as a JsonObjectJsonObject
JsonObjectBuilder. build()
Returns the JSON object associated with this object builder.JsonObject
EmptyArray. getJsonObject(int index)
JsonObject
EmptyObject. getJsonObject(java.lang.String name)
JsonObject
JsonArray. getJsonObject(int index)
Returns the object value at the specified position in this array.JsonObject
JsonObject. getJsonObject(java.lang.String name)
Returns the object value to which the specified name is mapped.JsonObject
JsonReader. readObject()
Returns a JSON object that is represented in the input source.Methods in javax.json with parameters of type JsonObject Modifier and Type Method Description static 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 JsonObject Modifier and Type Method Description JsonObjectBuilder
JsonProvider. 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 JsonObject Modifier and Type Method Description default 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 JsonObject Modifier and Type Method Description static java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,JsonArrayBuilder>,JsonObject>
JsonCollectors. groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static <T extends JsonArrayBuilder>
java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,T>,JsonObject>JsonCollectors. groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier, java.util.stream.Collector<JsonValue,T,JsonArray> downstream)
Constructs ajava.util.stream.Collector
that implements a "group by" operation on the inputJsonValue
elements.static java.util.stream.Collector<java.util.Map.Entry<java.lang.String,JsonValue>,JsonObjectBuilder,JsonObject>
JsonCollectors. toJsonObject()
Constructs ajava.util.stream.Collector
that accumulates the inputMap.Entry<String,JsonValue>
elements into aJsonObject
.static java.util.stream.Collector<JsonValue,JsonObjectBuilder,JsonObject>
JsonCollectors. toJsonObject(java.util.function.Function<JsonValue,java.lang.String> keyMapper, java.util.function.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 JsonObject Modifier and Type Method Description JsonParser
JsonParserFactory. 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 JsonObject Modifier and Type Class Description private static class
JsonObjectBuilderImpl.JsonObjectImpl
Fields in org.glassfish.json declared as JsonObject Modifier and Type Field Description private JsonObject
NodeReference.ObjectReference. object
Methods in org.glassfish.json that return JsonObject Modifier and Type Method Description JsonObject
NodeReference.ObjectReference. add(JsonValue value)
JsonObject
JsonObjectBuilderImpl.JsonObjectImpl. asJsonObject()
JsonObject
JsonObjectBuilderImpl. build()
JsonObject
JsonArrayBuilderImpl.JsonArrayImpl. getJsonObject(int index)
JsonObject
JsonObjectBuilderImpl.JsonObjectImpl. getJsonObject(java.lang.String name)
JsonObject
JsonParserImpl. getObject()
private JsonObject
JsonParserImpl. getObject(JsonObjectBuilder builder)
JsonObject
JsonReaderImpl. readObject()
JsonObject
NodeReference.ObjectReference. remove()
JsonObject
NodeReference.ObjectReference. replace(JsonValue value)
Methods in org.glassfish.json with parameters of type JsonObject Modifier and Type Method Description private JsonStructure
JsonPatchImpl. apply(JsonStructure target, JsonObject operation)
Applies a JSON Patch operation to the target.JsonObjectBuilder
JsonBuilderFactoryImpl. createObjectBuilder(JsonObject object)
JsonObjectBuilder
JsonProviderImpl. createObjectBuilder(JsonObject object)
JsonParser
JsonParserFactoryImpl. createParser(JsonObject object)
private void
JsonPatchImpl.DiffGenerator. diffObject(java.lang.String path, JsonObject source, JsonObject target)
private JsonPointer
JsonPatchImpl. getPointer(JsonObject operation, java.lang.String member)
private JsonValue
JsonPatchImpl. getValue(JsonObject operation)
static NodeReference
NodeReference. of(JsonObject object, java.lang.String name)
Returns aNodeReference
for a name/value pair in a JSON object.(package private) static java.lang.String
JsonMessages. POINTER_MAPPING_MISSING(JsonObject object, java.lang.String key)
void
JsonWriterImpl. writeObject(JsonObject object)
Constructors in org.glassfish.json with parameters of type JsonObject Constructor Description JsonObjectBuilderImpl(JsonObject object, BufferPool bufferPool)
JsonStructureParser(JsonObject object)
ObjectReference(JsonObject object, java.lang.String key)
ObjectScope(JsonObject object)
-