[webkit-dev] Native JSON parser

Adam Barth abarth at webkit.org
Tue Jul 15 01:46:08 PDT 2008


Hi folks,

Maceij suggested that I email this list to let you folks know that I'm
working on a native JSON parser for WebKit.

JSON is a popular format for transferring data on the web.  Most sites
that use JSON parse JSON strings using eval(), which is dangerous if
the strings come from an untrusted source.  ECMAScript 3.1 specs a
native JSON parser at window.JSON.parse.  Internet Explorer 8 Beta 2
and Firefox 3.1 both reportedly will include a native JSON parser.

I have the basic parser working.  You can see the work-in-progress
patch stream in <https://bugs.webkit.org/show_bug.cgi?id=20031>.  Let
me know if you have any good JSON tests.  :)

Adam


More information about the webkit-dev mailing list