I am trying to handle over some data (which I get from a database and convert with C# to Json) to Phantomjs as Json String.
That means I have no influence on the content of the data (I have to accept the double quotes as they come).
PhantomJs refuses to Parse some data which have double quotes in its string.
As a short example:
Phantomjs:
var i = "ab\"c"; //throws parseError, i is undefined
Nodejs/Recent Browser:
var i = "ab\"c"; //ok, i = 'ab"c';
Did anybody already stumble over this issue ?
I already saw some related discussion here:
http://ariya.ofilabs.com/2012/02/from-double-quotes-to-single-quotes.html