Value getter for JSONType.object. Unlike object, this retrieves the object by value and can be used in @safe code.
A caveat is that, if the returned value is null, modifications will not be visible:
JSONValue json; json.object = null; json.objectNoRef["hello"] = JSONValue("world"); assert("hello" !in json.object);
JSONException for read access if type is not JSONType.object.
See Implementation
Value getter for JSONType.object. Unlike object, this retrieves the object by value and can be used in @safe code.
A caveat is that, if the returned value is null, modifications will not be visible: