Make sure you json string does not have any carriage return in any section of it. I had a similar problem and had to write a custom code to remove it. and all is okay
> Date: Fri, 20 Apr 2012 12:49:43 +0530 > From: [email protected] > To: [email protected] > Subject: Need help > > Hello Folks, > > I have integrated wink with Apache Ofbiz and using it as rest server > some one from other server calls my services through rest. > It's working fine > yesterday I came across to a problem when a request I serve it and in > response I am sending back JSON and the client side its throwing error > can't parse JSON then I looked into it and found that the data is > missing at the end of the of the thats why its throwing that error at > client side then I have checked at the server end and its sending the > whole data and in the right format, it means problem is there somewhere > in response. > Can anybody please help in resolving this issue, or is > there some config file to set the size of a respose object or something > like this. > > Your help is much appreciated. Thanks > > Regards, > Ankit >
