How to access nested elements of json object using getJSONArray method

The Solution to How to access nested elements of json object using getJSONArray method is


You have to decompose the full object to reach the entry array.

Assuming REPONSE_JSON_OBJECT is already a parsed JSONObject.

REPONSE_JSON_OBJECT.getJSONObject("result")
    .getJSONObject("map")
    .getJSONArray("entry");

~ Answered on 2013-02-15 16:28:37


Most Viewed Questions: