Example usage for Java javax.json JsonObject fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | containsKey(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. |
boolean | equals(Object o) Compares the specified object with this map for equality. |
V | get(Object key) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
boolean | getBoolean(String name) Returns the boolean value of the associated mapping for the specified name. |
boolean | getBoolean(String name, boolean defaultValue) Returns the boolean value of the associated mapping for the specified name. |
Class> | getClass() Returns the runtime class of this Object . |
int | getInt(String name) A convenience method for getJsonNumber(name).intValue() |
int | getInt(String name, int defaultValue) Returns the int value of the associated JsonNumber mapping for the specified name. |
JsonArray | getJsonArray(String name) Returns the array value to which the specified name is mapped. |
JsonNumber | getJsonNumber(String name) Returns the number value to which the specified name is mapped. |
JsonObject | getJsonObject(String name) Returns the object value to which the specified name is mapped. |
JsonString | getJsonString(String name) Returns the string value to which the specified name is mapped. |
String | getString(String name) A convenience method for getJsonString(name).getString() |
String | getString(String name, String defaultValue) Returns the string value of the associated JsonString mapping for the specified name. |
boolean | isEmpty() Returns true if this map contains no key-value mappings. |
boolean | isNull(String name) Returns true if the associated value for the specified name is JsonValue.NULL . |
Set | keySet() Returns a Set view of the keys contained in this map. |
int | size() Returns the number of key-value mappings in this map. |
String | toString() Returns JSON text for this JSON value. |