my array is
{
newsitem [
{"headline":"hello","caption":"date",
"image":{"photo":"img","thumb":"thumbnail"}
}
]
}
I want to access photo and thumb using jsonobject and jsonarray. I am able to access headline and caption.
this is the code I am using to get headline. help me to get photo and thumb.
JSONObject obj = new JSONObject(retstring);
JSONArray ja = obj.getJSONArray("NewsItem");
for (int i = 0; i < ja.length(); i++) {
JSONObject jo = (JSONObject) ja.get(i);
String h=jo.getString("HeadLine");
}