Function JSONValue.arrayNoRef

Value getter for JSONType.array. Unlike array, this retrieves the array by value and can be used in @safe code.

inout inout(JSONValue[]) arrayNoRef() pure @property @trusted;

A caveat is that, if you append to the returned array, the new values aren't visible in the

JSONValue

JSONValue kson;
json.array!=![JSONValue(

Throws

JSONException for read access if type is not JSONType.array.