The boring default constructor.
The ever so slightly more interesting initializing constructor.
Allow the data to be retreived.
This function parses a JSONArray out of a string and eats characters as it goes, hence the ref string parameter.
Allow the data to be set so the object can be reused.
A method to convert this JSONString to a formatted, user-readable format.
A method to convert this JSONString 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
JSONString represents a JSON string. Internal representation is escaped for faster parsing and JSON generation.