I have following data from JSON
{ \"MenuName\": \"starter dish\", \"SubMenu\": [ \"pizza dish1\", \"pizza dish2\"
try this
for (int i = 0; i < jsonArray.length(); i++) { jsonArray.getJSONObject(i).getInt("SubMenu"); }