Package net.diversionmc.json
Class JSON.JSONObject
java.lang.Object
net.diversionmc.parser.util.Pointable
net.diversionmc.parser.pattern.Sentence
net.diversionmc.json.JSON.JSONValue
net.diversionmc.json.JSON.JSONObject
- Enclosing class:
- JSON
Parsed JSON object that stores key-
JSON.JSONValue pairs.-
Constructor Summary
ConstructorsConstructorDescriptionJSONObject(net.diversionmc.parser.util.FilePointer ptr, Map<String,JSON.JSONValue> values)Construct a JSON Object {"key":value,...} -
Method Summary
Methods inherited from class net.diversionmc.json.JSON.JSONValue
asArray, asNumber, asObject, asStringMethods inherited from class net.diversionmc.parser.pattern.Sentence
isStatementMethods inherited from class net.diversionmc.parser.util.Pointable
pointer
-
Constructor Details
-
JSONObject
Construct a JSON Object {"key":value,...}- Parameters:
ptr- Creation position.values- Values to store.
-
-
Method Details
-
values
Get all values stored in the current JSONObject.- Returns:
- key-
JSON.JSONValuepairs
-
toString
Serialize current JSONObject back to JSON.
-