List of utility methods to do JSON Array to List
ArrayList | parseJSONArrayToList(JSONArray jsa) parse JSON Array To List ArrayList<Integer> list = new ArrayList<Integer>(); for (int i = 0; i < jsa.length(); i++) { try { list.add(jsa.getInt(i)); } catch (JSONException e) { e.printStackTrace(); return list; |