Quantcast
Channel: How to read a nested, non-array JSON in java? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by mihir raj for How to read a nested, non-array JSON in java?

JSONObject jobj = new JSONObject(jsonData);JSONArray items = jobj.getJSONArray("items");Iterator i = items.iterator();while(i.hasNext()){ JSONObject gobj = (JSONObject) i.next(); JSONObject volumeInfo...

View Article



How to read a nested, non-array JSON in java?

I've a JSON file with:"items": [ { (...)"volumeInfo": { (...)"readingModes": {"text": true,"image": true }, (...) }How do I access 'image' and 'text' in "readingModes"? I've tried both JSONArray...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images