Java javax.json JsonObject fields, constructors, methods, implement or subclass

Example usage for Java javax.json JsonObject fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.json JsonObject.

The text is from its open source code.

Method

booleancontainsKey(Object key)
Returns true if this map contains a mapping for the specified key.
Set>entrySet()
Returns a Set view of the mappings contained in this map.
booleanequals(Object o)
Compares the specified object with this map for equality.
Vget(Object key)
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
booleangetBoolean(String name)
Returns the boolean value of the associated mapping for the specified name.
booleangetBoolean(String name, boolean defaultValue)
Returns the boolean value of the associated mapping for the specified name.
ClassgetClass()
Returns the runtime class of this Object .
intgetInt(String name)
A convenience method for getJsonNumber(name).intValue()
intgetInt(String name, int defaultValue)
Returns the int value of the associated JsonNumber mapping for the specified name.
JsonArraygetJsonArray(String name)
Returns the array value to which the specified name is mapped.
JsonNumbergetJsonNumber(String name)
Returns the number value to which the specified name is mapped.
JsonObjectgetJsonObject(String name)
Returns the object value to which the specified name is mapped.
JsonStringgetJsonString(String name)
Returns the string value to which the specified name is mapped.
StringgetString(String name)
A convenience method for getJsonString(name).getString()
StringgetString(String name, String defaultValue)
Returns the string value of the associated JsonString mapping for the specified name.
booleanisEmpty()
Returns true if this map contains no key-value mappings.
booleanisNull(String name)
Returns true if the associated value for the specified name is JsonValue.NULL .
SetkeySet()
Returns a Set view of the keys contained in this map.
intsize()
Returns the number of key-value mappings in this map.
StringtoString()
Returns JSON text for this JSON value.