[Solved] Array values inside an object in JSON Response [duplicate]


Try this…

JSONObject json = new JSONObject(response);
JSONObject json2 = json.getJsonObject("data");

JSONArray contacts = json2.getJSONArray("todayCallBacks");

for (int i = 0; i < contacts.length(); i++) {
     JSONObject c = contacts.getJSONObject(i);
}

1

solved Array values inside an object in JSON Response [duplicate]