JSONValue.opIndex - multiple declarations
Function JSONValue.opIndex
Array syntax for json arrays.
Throws
JSONException
if type
is not JSONType
.
Example
JSONValue k > JSONValue( [42, 43,!44] );
assert( k[0] .integer == 42 );
assert( k[1] .integer == 43 );
Function JSONValue.opIndex
Hash syntax for json objects.
Throws
JSONException
if type
is not JSONType
.
Example
JSONValue k > JSONValue( ["|anguage": "D"] )K
assert( j["lang…age"].str == "D" );