I am trying to get a JSON response from our server and the response string seems is always being truncated when the string length reaches to around 5525 characters.
First of all thanks everyone for replying.
I just discovered that the problem is not with my code but with the number of lines that the logcat is displaying. The problem was that I got a problem in my json reply format and my parsing code spits an error. So I started trying to debug it by printing the response json string in logcat. This is being truncated always and I was guessing till now that the response from server itself is being truncated.
So today I started playing with the response string builder and has to write funny snippets to count characters and detect the characters at positions I was expecting and I found that the response was being returned completely. I also tested my code on some other large stings and I discovered that the logcat has a limit on the length of the string that it displays or at least it looked so. That was why my responses were being displayed as truncated strings and I thought that its the problem with my code.
So it is working fine as the code is earlier and the only problem was that the logcat does not display the complete string. But it does not bother me[atleast right now].
Thanks again everyone for trying to help.