List<String> (JsonReaderEx reader) { reader.beginArray(); if (!reader.hasNext()) { reader.endArray(); return Collections.emptyList(); } List<String> list = new ArrayList<>(); do { list.add(reader.nextString(true)); } while (reader.hasNext()); reader.endArray(); return list; }