JSONValue.orderedObject

inout(OrderedObjectMember[]) orderedObject() @property ref inout pure @system return

Value getter/setter for ordered JSONType.object.

Throws

JSONException for read access if type is not

JSONType.object or the object is unordered.

Note

This is @system because of the following pattern:

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

OrderedObjectMember[] orderedObject(return scope OrderedObjectMember[] v) @property pure nothrow @nogc @trusted

ditto