public interface JsonObject extends JsonValue, java.util.Map<java.lang.String,JsonValue>
JsonValue,
JsonValueFactory| Modifier and Type | Method and Description |
|---|---|
JsonObject |
clone()
Clones this JSON object.
|
boolean |
containsKey(java.lang.String key)
Delegates the call to
Map.containsKey(Object) method. |
boolean |
containsNullValue()
Delegates the call to
Map.containsValue(Object) method. |
boolean |
containsValue(java.lang.Boolean value)
Wraps passed value with JsonBoolean and delegates the call to
Map.containsValue(Object) method. |
boolean |
containsValue(JsonValue value)
Delegates the call to
Map.containsValue(Object) method. |
boolean |
containsValue(java.lang.Number value)
Wraps passed value with JsonNumber and delegates the call to
Map.containsValue(Object) method. |
boolean |
containsValue(java.lang.String value)
Wraps passed value with JsonString and delegates the call to
Map.containsValue(Object) method. |
JsonValue |
get(java.lang.String key)
Delegates the call to
Map.get(Object) method. |
JsonValue |
put(java.lang.String key,
java.lang.Boolean value)
Wraps passed value with JsonBoolean and delegates the call to
Map.put(Object, Object) method. |
JsonValue |
put(java.lang.String key,
java.lang.Number value)
Wraps passed value with JsonNumber and delegates the call to
Map.put(Object, Object) method. |
JsonValue |
put(java.lang.String key,
java.lang.String value)
Wraps passed value with JsonString and delegates the call to
Map.put(Object, Object) method. |
JsonValue |
putNull(java.lang.String key)
Delegates the call to
Map.put(Object, Object) method. |
JsonValue |
remove(java.lang.String key)
Delegates the call to
Map.remove(Object) method. |
void |
writeTo(JsonWriter output)
Serializes this JSON object to the writer.
|
void |
writeTo(java.io.OutputStream output)
Serializes this JSON object to the stream using
UTF-8 character set. |
void |
writeTo(java.io.OutputStream output,
java.nio.charset.Charset charset)
Serializes this JSON object to the writer using specified character set.
|
void |
writeTo(java.io.Writer output)
Serializes this JSON object to the writer.
|
boolean containsKey(java.lang.String key)
Map.containsKey(Object) method.key - JSON stringboolean containsValue(java.lang.String value)
Map.containsValue(Object) method.value - string to wrapboolean containsValue(java.lang.Boolean value)
Map.containsValue(Object) method.value - boolean to wrapboolean containsValue(java.lang.Number value)
Map.containsValue(Object) method.value - number to wrapboolean containsValue(JsonValue value)
Map.containsValue(Object) method.value - JSON valueboolean containsNullValue()
Map.containsValue(Object) method.JsonValue get(java.lang.String key)
Map.get(Object) method.key - JSON stringnull if this JSON object contains no mapping for the keyJsonValue put(java.lang.String key, java.lang.String value)
Map.put(Object, Object) method.key - JSON stringvalue - string to wrapJsonValue put(java.lang.String key, java.lang.Boolean value)
Map.put(Object, Object) method.key - JSON stringvalue - boolean to wrapJsonValue put(java.lang.String key, java.lang.Number value)
Map.put(Object, Object) method.key - JSON stringvalue - number to wrapJsonValue putNull(java.lang.String key)
Map.put(Object, Object) method.key - JSON stringJsonValue remove(java.lang.String key)
Map.remove(Object) method.key - JSON stringvoid writeTo(JsonWriter output) throws java.io.IOException, JsonException
output - to write tojava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedvoid writeTo(java.io.Writer output)
throws java.io.IOException,
JsonException
output - to write tojava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedvoid writeTo(java.io.OutputStream output)
throws java.io.IOException,
JsonException
UTF-8 character set.output - to write tojava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedvoid writeTo(java.io.OutputStream output,
java.nio.charset.Charset charset)
throws java.io.IOException,
JsonException
output - to write tocharset - character setjava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonObject clone()
Copyright © 2017 FOSS Nova Software Foundation. All rights reserved.