JSONValue.orderedObject

Value getter/setter for ordered JSONType.object.

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

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

Meta