Package org.h2.util.json
Class JSONObject
- java.lang.Object
-
- org.h2.util.json.JSONValue
-
- org.h2.util.json.JSONObject
-
public final class JSONObject extends JSONValue
JSON object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTo(JSONTarget<?> target)Appends this value to the specified target.JSONValuegetFirst(java.lang.String name)Returns value of the first member with the specified name.java.util.Map.Entry<java.lang.String,JSONValue>[]getMembers()Returns the value.
-
-
-
Method Detail
-
addTo
public void addTo(JSONTarget<?> target)
Description copied from class:JSONValueAppends this value to the specified target.
-
getMembers
public java.util.Map.Entry<java.lang.String,JSONValue>[] getMembers()
Returns the value.- Returns:
- the value
-
getFirst
public JSONValue getFirst(java.lang.String name)
Returns value of the first member with the specified name.- Parameters:
name- name of the member- Returns:
- value of the first member with the specified name, or
null
-
-