Nothing to see here except for the boring constructor, move along.
Allow the user to get the number of elements in this object
Operator overload for foreach iteration through the object with values only and allow modification of the reference
Operator overload for foreach iteration through the object with key and value and allow modification of the reference
Allow "in" operator to work as expected for object types without an explicit cast
Operator overload for accessing values already in the AA.
Operator overload for setting keys in the AA.
This function parses a JSONObject out of a string
A method to convert this JSONObject to a formatted, user-readable format.
A method to convert this JSONObject to a user-readable format.
The parse method of this interface should ALWAYS be destructive, removing things from the front of source as it parses.
Convenience function for casting to JSONObject
Convenience function for casting to JSONArray
Convenience function for casting to JSONString
Convenience function for casting to JSONBoolean
Convenience function for casting to JSONNumber
Convenience function for casting to JSONNull
Associative array index function for objects describing associative array-like attributes.
Allow foreach over the object with string key and ref value.
Array index function for objects describing array-like attributes.
Allow foreach over the object with integer key and ref value.
Convenience function for iteration that apply to both AA and array type operations with ref value
Allow "in" operator to work as expected for object types without an explicit cast
JSONObject represents a single JSON object node and has methods for adding children. All methods that make changes modify this JSONObject rather than making a copy, unless otherwise noted. Many methods return a self reference to allow cascaded calls.