JSONParser.getArray

Get an array of elements matching the type.

  1. auto getArray()
  2. T[] getArray()
    struct JSONParser
    T[]
    getArray
    (
    T
    )
    ()
  3. T getArray()
  4. Element[Size] getArray()

Throws

JSONException if there's a type mismatch or syntax error.

Examples

auto json = JSONParser(q{ ["test", "foo", "bar"] });
assert(json.getArray!string == ["test", "foo", "bar"]);

Meta