View Full Version : json returning angle bracket

10 Dec 2014, 3:32 AM
Hi all

I used jsonP to retrieve data from a service written in .net. When I open the page to display the data retrieved, I get the following error: "Uncaught SyntaxError: Unexpected token < " in Chrome's debugging console.

Is there something I need to add to strip out what I'm assuming is the opening bracket to an HTML tag?


11 Dec 2014, 4:07 AM
Figured I'd answer my own question so that no one else struggles with this. The answer (I think) is to change the webservice to write out the json using Context.Response.Write and not return the json string. The webmethod therefore has to 'return' a void.