List<StringIntPair> (JsonReaderEx reader) { checkIsNull(reader); reader.beginArray(); if (!reader.hasNext()) { reader.endArray(); return Collections.emptyList(); } List<StringIntPair> result = new ArrayList<>(); do { reader.beginArray(); result.add(new StringIntPair(reader.nextInt(), reader.nextString())); reader.endArray(); } while (reader.hasNext()); reader.endArray(); return result; }