Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Magnus Holm did a great job describing this after he fixed the problem in Rack::JSONP. Good reference as well for those interested in the topic:

http://timelessrepo.com/json-isnt-a-javascript-subset



What a shame that \u hack isn't acceptable in javascript, http://code.google.com/p/v8/issues/detail?id=1939#c4


> The abstract operation Quote(value) wraps a String value in double quotes and escapes characters within it.

It doesn't look like http://es5.github.com/#Quote has anything to do with serializing to JSON string--am I missing something?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: