public class JsonObject extends java.util.LinkedHashMap<java.lang.String,JsonValue>
Constructor and Description |
---|
JsonObject()
Initializes a new instance of the JsonObject class.
|
Modifier and Type | Method and Description |
---|---|
static JsonObject |
fromDictionary(java.util.Map<?,?> map)
Converts a generic dictionary to a JsonObject.
|
JsonValue |
getValue(java.lang.String key)
return the value associated with key or default value
|
JsonValue |
getValue(java.lang.String key,
JsonValue defaultValue)
return the value associated with key or default value
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public JsonObject()
public static JsonObject fromDictionary(java.util.Map<?,?> map)
map
- Object that has to be converted to JsonObjectpublic JsonValue getValue(java.lang.String key)
key
- String