I am trying to retrieve a json string and parsing it.
I've tried both:
var obj = $.parseJSON(data);
var t = JSON.parse(data);
They return "Invalid character error."
My data being returned is:
And when I view it in the debugger, it looks like this:
It is erroring in the jquery-1.11.2.min.js file with the catch here:
And the actual error looks like above when I step through it.
I looked at all the examples and they were using single quotes, so I found and used a manual serializer and sent this instead, with single quotes instead of the double quotes, so there would be no escaped characters.
But still the same error. Do you see any reason I should be getting the invalid character error?