JSONValue.object

Value getter/setter for JSONType.object.

  1. inout(JSONValue[string]) object [@property getter]
    struct JSONValue
    @property ref inout pure @system return
    inout(JSONValue[string])
    object
    ()
  2. JSONValue[string] object [@property setter]

Throws

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

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

Meta