i m trying to get values from JSONArray
inside array, i m able to retrieve whole JSON values into JSONArray
successfully but not able to retrieve values inside JSONArray
. When i convert JSONArray
to JSONObject
to get values stored inside JSONArray
. It gives error: org.json.JSONException: No value for "banner"
Here is JSON code, i verified JSON code with jsonlint.com and it showed JSON is Validate,
[
{"code":"banner","moduletitle":0,
"banner":
[
{"image":"http://imageurl"},
{"image":"http://imageurl"},
{"image":"http://imageurl"}
]
}
]
See Question&Answers more detail:os