JSONValue.array

Value getter/setter for JSONType.array.

  1. inout(JSONValue[]) array [@property getter]
  2. JSONValue[] array [@property setter]
    struct JSONValue
    @property pure nothrow @nogc @safe
    array

Throws

JSONException for read access if type is not JSONType.array. Note: this is @system because of the following pattern:

auto a = &(json.array());
json.uinteger = 0;  // overwrite array pointer
(*a)[0] = "world";  // segmentation fault

Meta

Suggestion Box / Bug Report