[whatwg] Native JSON parsing API

Maciej Stachowiak mjs at apple.com
Sat Jun 14 01:43:00 PDT 2008

On Jun 14, 2008, at 1:08 AM, Adam Barth wrote:

> On Tue, Feb 12, 2008 at 5:57 PM, Ian Hickson <ian at hixie.ch> wrote:
>> Passing objects, or arrays of strings, arrays, or objects, is more
>> complex, but as you point out, it can be done using JSON libraries.  
>> Since
>> it is likely that JSON will be supported natively by UAs in due  
>> course, it
>> seems better to wait for that support rather than adding type  
>> support to
>> postMessage().
> HTML 5 should expose a native JSON parser for web content.

Native JSON parsing is being considered for the next versions of  
ECMAScript (the 3.1 and 4 versions). It seems like a better fit there  
than in HTML5. If it ends up not being added to ECMAScript, I would  
propose it as a standalone spec for the W3C Web Apps WG.

  - Maciej

More information about the whatwg mailing list