Provides support for index assignments, which sets the corresponding value of the JSON object's key field to value.
If the JSONValue is JSONType.null_, then this function initializes it with a JSON object and then performs the index assignment.
JSONException if type is not JSONType.object or JSONType.null_.
JSONValue j = JSONValue( ["Perl", "C"] ); j[1].str = "D"; assert( j[1].str == "D" );
JSONValue j = JSONValue( ["language": "D"] ); j["language"].str = "Perl"; assert( j["language"].str == "Perl" );
See Implementation
Provides support for index assignments, which sets the corresponding value of the JSON object's key field to value.
If the JSONValue is JSONType.null_, then this function initializes it with a JSON object and then performs the index assignment.