Use fromJSONString to parse from a json string rather than a JSONValue
assert(fromJSONString!(int[])("[1, 2, 3]") == [1, 2, 3]);
See Implementation