When i call an rest api from android app it will send response as a JSON
array which contains more than 5000 objects. While reading and parsing the response entity using for loop it is taking too much time and going unresponsive.
JSONArray list = new JSONArray(EntityUtils.toString(response.getEntity()));
Here is sample of the JSON:
[["aa@gmail.com",true],["bb@gmail.com",true],["cc@gmail.com",true],["dd@gmail.com",true],["ee@gmail.com",true],["ff@gmail.com",true],["gg@gmail.com",true],["hh@gmail.com",true]]
Please help me.