JSONObject.require

  1. inout(JSONValue) require(string name)
    struct JSONObject
    inout pure @safe
    inout(JSONValue)
    require
    (
    string name
    )
  2. inout(T) require(string name)
  3. inout(T) require(string name, T fallback)
  4. inout(Nullable!T) require(string name)

Throws

JSONException when the name is no attribute of the object.

Meta