json values in toast typein my project getting data from server side in that i'm sending array with nested array in response. in this image you can see the "Secondary_number"with array has some values. i need to print those value. im attached my java code . when i try to run this my screen get black.
JSONObject obj = new JSONObject(response);
JSONArray jsonArray = obj.getJSONArray("response");
service = new String[jsonArray.length()];
//Iterate the jsonArray and print the info of JSONObjects
for (int i = 0; i < jsonArray.length(); i++) {
JSONObject jsonObject = jsonArray.getJSONObject(i)
//getting second array
JSONArray jArray = jsonObject.getJSONArray("secondary_number");
//Iterate the jsonArray and print the info of JSONObjects
for (int j = 0; j < jArray.length(); j++) {
do some computation
}
service[i] = jsonObject.getString("service_id").toString(); //getting values in response
tv1 = jsonObject.getString("service_id");
tv2 = jsonObject.getString("user_id").toString();
tv3 = jsonObject.getString("username").toString();
tv4 = jsonObject.getString("company_name").toString();
tv5 = jsonObject.getString("assigned_time").toString();
so kindly help out from this