I am using the org.json library. * to translate the results of my web services (obviously json) into json objects. My problem is that the JSONObject and JSONArray constructors take a long time to build objects. I do not transmit a very large amount of data (somewhere between 1 and 100 elements of the array with 3-5 keys each), but even with 4 or 5 it takes several seconds to complete the constructor.
Is there any way to speed this up? Is there a faster library that I could use?
There is not much code here.
JSONArray arrayjson = new JSONArray(json);
Where json is the string.
source share