JSONType

This is the interface implemented by all classes that represent JSON objects.

Members

Functions

opApply
int opApply(int delegate(ref ulong, ref JSONType) dg)

Allow foreach over the object with integer key and ref value.

opApply
int opApply(int delegate(ref JSONType) dg)

Convenience function for iteration that apply to both AA and array type operations with ref value

opApply
int opApply(int delegate(ref string, ref JSONType) dg)

Allow foreach over the object with string key and ref value.

opIn_r
JSONType* opIn_r(string key)

Allow "in" operator to work as expected for object types without an explicit cast

opIndex
JSONType opIndex(string key)

Associative array index function for objects describing associative array-like attributes.

opIndex
JSONType opIndex(int key)

Array index function for objects describing array-like attributes.

parse
void parse(string source)

The parse method of this interface should ALWAYS be destructive, removing things from the front of source as it parses.

toJSONArray
JSONArray toJSONArray()

Convenience function for casting to JSONArray

toJSONBoolean
JSONBoolean toJSONBoolean()

Convenience function for casting to JSONBoolean

toJSONNull
JSONNull toJSONNull()

Convenience function for casting to JSONNull

toJSONNumber
JSONNumber toJSONNumber()

Convenience function for casting to JSONNumber

toJSONObject
JSONObject toJSONObject()

Convenience function for casting to JSONObject

toJSONString
JSONString toJSONString()

Convenience function for casting to JSONString

toPrettyString
string toPrettyString(string indent)
Undocumented in source.
toString
string toString()
Undocumented in source.

Meta