Hacker News new | past | comments | ask | show | jobs | submit login

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: