in src/main/java/org/apache/uima/json/jsoncas2/ser/FeatureStructureDeserializer.java [456:470]
private IntArrayFS deserializeIntegerArray(JsonParser aParser, CAS aCas) throws IOException {
// Skip array opening and go to first value (or end of array if there is no value)
aParser.nextValue();
aParser.nextValue();
List<Integer> values = new ArrayList<>();
while (aParser.currentToken() != JsonToken.END_ARRAY) {
values.add(aParser.getIntValue());
aParser.nextValue();
}
IntArrayFS arrayFs = aCas.createIntArrayFS(values.size());
for (int i = 0; i < values.size(); i++) {
arrayFs.set(i, values.get(i));
}
return arrayFs;
}