3 ms·
Dangerous advice if object values can contain string terminates.. var obj = { "Name": "Joe`s sloppy" }; will work well as plain object while obj = JSON.parse
by anderslaub 7y ago
Dangerous advice if object values can contain string terminates..
var obj = { "Name": "Joe`s sloppy" };
will work well as plain object while
obj = JSON.parse('{ "Name": "Joe's sloppy" }');
Will kill your site.. hard to control especially with several different unicode characters all being interpreted as plings