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 ArticleHow 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
More Pages to Explore .....