Posted By

BenClayton on 04/05/11


Tagged


Versions (?)

Android: Iterate a JSONArray


 / Published in: Java
 

  1. JSONArray ar = new JSONArray(jsonString);
  2. for (int i = 0; i < ar.length(); i++) {
  3. JSONObject child = ar.getJSONObject(i);
  4. // do stuff with child
  5. }

Report this snippet  

You need to login to post a comment.