JSONObject.require

  1. inout(JSONValue) require(string name)
  2. inout(T) require(string name)
    struct JSONObject
    inout
    inout(T)
    require
    (
    T
    )
    (
    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 or when the value is not of the required type.

Meta