private List<Integer> toList(JSONArray jsonArray) {
        List<Integer> list = new ArrayList<Integer>();

        for (int index = 0; index < jsonArray.length(); index++) {
            list.add(jsonArray.optInt(index));
        }

        return list;
    }
Convert JSON array of integers to List.

@param jsonArray Array of integers.
src/android/LocalNotification.java