JSONArray jsonArray = new JSONArray(); jsonArray.add("1"); jsonArray.add("2"); jsonArray.add("3"); String jString = JSON.toJSONString(jsonArray); List<Integer> list = JSON.parseArray(jString, Integer.class); for (Integer a : list) { System.out.println(a); } for (int i = 0; i < list.size(); i++) { System.out.println(list.get(i)); } Iterator<Integer> iterator = list.iterator(); while (iterator.hasNext()) { if (iterator.next() == 1) { iterator.remove(); } } Iterator<Integer> iterator1 = list.iterator(); while (iterator1.hasNext()) { System.out.println(iterator1.next()); }