fromJSON

Extract an array from a JSONValue.

Examples

Convert a json array into an array.

auto a = [ 1, 2, 3 ];
assert(JSONValue(a).fromJSON!(int[]) == a);

Meta