I have an application in which I am working on converting from CF8 to CF10, and some of my remote CFCs where the returned data should be JSON now fail because there seems to be a "//" pre-hanging on the returned data . For example, the returned structure is displayed here:
//{"SUCCESS":true,"ERRORS":[],"DATA":{"COLUMNS":["AUTHRESULT","SPID","EMAIL","RID"],"DATA":[[true,361541,"user@domain.com",""]]}}
The same function, performed through the same CFC on the CF8 server, gives:
{"ERRORS":[],"SUCCESS":true,"DATA":{"COLUMNS":["AUTHRESULT","SPID","EMAIL","RID"],"DATA":[[true,361541,"user@domain.com",""]]}}
CFC, which proxies all requests, has returnFormat = "JSON" - but there is no SerializeJSON () called in either proxyCFC or CFC, which is extended from proxyCFC.
I'm not sure the best way to handle this. Trimming the "//" in the response will be possible, but this does not seem to be "correct." I need to refer to it at the end of CF10, because these functions are used not only in our application, but also in some remote applications (and some through http: // messages, and some through jQuery Ajax calls).