JSONValue.object

inout(JSONValue[string]) object() @property ref inout pure @system return

Value getter/setter for unordered JSONType.object.

Throws

JSONException for read access if type is not

JSONType.object or the object is ordered.

Note

This is @system because of the following pattern:

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

JSONValue[string] object(return scope JSONValue[string] v) @property pure nothrow @nogc @trusted

ditto