Package org.h2.util.json
Class JSONObject
java.lang.Object
org.h2.util.json.JSONValue
org.h2.util.json.JSONObject
JSON object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArrayList
<AbstractMap.SimpleImmutableEntry<String, JSONValue>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Add a key-value pair.void
addTo
(JSONTarget<?> target) Appends this value to the specified target.Returns value of the first member with the specified name.Returns the value.
-
Field Details
-
members
-
-
Constructor Details
-
JSONObject
JSONObject()
-
-
Method Details
-
addMember
Add a key-value pair.- Parameters:
name
- the keyvalue
- the value
-
addTo
Description copied from class:JSONValue
Appends this value to the specified target. -
getMembers
Returns the value.- Returns:
- the value
-
getFirst
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
-