W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2008

[whatwg] Native JSON parsing API

From: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 16 Jun 2008 08:36:42 +0200
Message-ID: <485609FA.2010401@gmx.de>
Henri Sivonen wrote:
> On Jun 14, 2008, at 11:08, Adam Barth wrote:
> 
>> For example, Firefox 3 implements a native JSON
>> parser <http://developer.mozilla.org/en/docs/nsIJSON>, but only for
>> privileged JavaScript.  The JSON format itself is already specified.
> 
> 
> The de jure spec for JSON, RFC 4627, doesn't specify error handling on 
> the level one would expect from a WHATWG spec. Instead, the RFC says: "A 
> JSON parser MAY accept non-JSON forms or extensions."
> http://www.ietf.org/rfc/rfc4627.txt
> 
> The JSON parsers I've used in non-browser contexts have been Draconian 
> and incompatible with existing content such as output from del.icio.us, 
> which can contain escaped single quotes, which isn't allowed in proper 
> JSON.

Did you send a bug report to del.icio.us?

BR, Julian
Received on Sunday, 15 June 2008 23:36:42 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:03 UTC