json-simple claims performance far superior to the "stock" API. I'd give it a try, especially since the root of your problem may just be the large input.
http://code.google.com/p/json-simple/ -Thane On May 1, 2:45 am, j0nSn0w <[email protected]> wrote: > Hi guys, I'm developing an Android (2.2) application in which I get > from a web service a string containing the JSON serialized version of > a list of custom objects, which results in a JSONArray string of > JSONObject. The received string is well formed, as I can see at > eyesight and as I can prove with online validator. At one point in the > Android application, I pass this string to a JSONArray constructor, to > get an array of JSONObject. Here's the problem: the JSONArray > constructor throws an exception, stating that at some point the string > ends with a invalid terminator: but the point indicated in the > exception is far from the real end of the string. The fact is that the > string in question is huge (about 160000 chars): does anyone know if > there's a limit to the length of a string when passed to the JSONArray > constructor? The string variable held in memory is full-length, so it > seems to me that the JSONArray constructor kindof truncates it. Is it > possible? > > Thanks in advance, regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

