I'm getting a response from an URL which I'm storing to a string. The Response is in JSON format and it's about 1800 lines. When I use a String to read the data, around 800 lines it comes like this..
{"carrierFsCode":"UA","flightNumber":"935","se...
Initially I though String might not be able to handle it and I tried to use StringBuffer setting a minimumcapacity and all but I'm getting the same problem. This is the part where I'm having the problem.
String str = "";
while (null != (str = br.readLine())) {
temp = str;
}
Any suggestions why this is happening.
PS: The URL is fine. When I try to store it to a file I get the entire JSON.