The new native JSON support in the nightly builds breaks most non-Western Latin websites, as it fails to parse almost any character other than certain basic Latin 1 letters. Example: JSON.parse('"•"'); SyntaxError: Unable to parse JSON string It even fails to round-trip between its own stringify and parse: JSON.parse(JSON.stringify('•')); SyntaxError: Unable to parse JSON string These of course all work fine with Firefox 3.5, IE 8.0 or Douglas Crockford's JSON2.js.
<rdar://problem/7016214>
Created attachment 32018 [details] Fixeration!
Comment on attachment 32018 [details] Fixeration! In the ChangeLog, 'I' is spelled incorrectly. :-P
Committing to http://svn.webkit.org/repository/webkit/trunk ... M JavaScriptCore/ChangeLog M JavaScriptCore/runtime/LiteralParser.cpp M LayoutTests/ChangeLog M LayoutTests/fast/js/JSON-parse-expected.txt M LayoutTests/fast/js/resources/JSON-parse.js Committed r45356