Quantcast
Channel: Parse JSON Array without Key in Android - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Julien Leray for Parse JSON Array without Key in Android

$
0
0

Consider Foreach version:

try {
    JSONArray itemArray=jsonObject.getJSONArray("items");
    for (var item : itemArray) {
        System.out.println(item);
    }
} catch (JSONException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>