Sriks Sriks - 1 year ago 118
Java Question

How to access nested elements of json object using getJSONArray method

I have a JSON response like this:


I want to access the value of "entry" array object. I am trying to access:


I am getting JSON Exception. Can someone please help me on how to get the JSON array from the above JSON response?

Answer Source

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

Assuming REPONSE_JSON_OBJECT is already a parsed JSONObject.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download