JSONValue.object

Value getter/setter for JSONType.object.

  1. inout(JSONValue[string]) object [@property getter]
  2. JSONValue[string] object [@property setter]
    struct JSONValue
    @property pure nothrow @nogc @trusted
    JSONValue[string]
    object
    (
    return JSONValue[string] v
    )

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