SyntaxFix
Write A Post
Hire A Developer
Questions
Not with an iterator.
For org.json.JSONArray, you can do:
org.json.JSONArray
for (int i = 0; i < arr.length(); i++) { arr.getJSONObject(i); }
For javax.json.JsonArray, you can do:
javax.json.JsonArray
for (int i = 0; i < arr.size(); i++) { arr.getJsonObject(i); }