W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: [WebIDL] toJSON

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 30 May 2012 17:32:33 -0400
Message-ID: <4FC691F1.6080109@mit.edu>
To: public-script-coord@w3.org
On 5/30/12 5:30 PM, Travis Leithead wrote:
> The problem we ran into was that other implementations didn't properly support WebIDL [yet], and so a simple JSON.stringify(...) would work in those browsers but not in IE9

Specifically, it would work in Chrome and Safari and Opera, but not in 
IE or Gecko.

Might have been nice if you'd given us a heads-up that you were planning 
to make it work in IE too, so we could do it on our end... ;)

> The larger question (in my mind) is whether toJSON extensions should get syntactic sugar in WebIDL or not. Since they are so similar (in principle) to toString extensions, I'd argue that it would be a good idea. Cameron, what do you think?

Fwiw, this would make sense to me.

Received on Wednesday, 30 May 2012 21:33:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:06 UTC