superfell/json2apex

handling of primitive arrays is broken with explict parse

superfell opened this issue · 1 comments

e.g. given this json { "ids" : [1,2,3] } it works fine in regular mode, but in explict parse it generates code with
while (parser.nextToken() != JSONToken.END_ARRAY) {
ids.add(new Integer(parser));
}

which won't compile

fixed in ddd2973