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

[WebIDL] toJSON

From: David Bruant <bruant.d@gmail.com>
Date: Wed, 30 May 2012 19:30:43 +0200
Message-ID: <4FC65943.6080500@gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
Hi,

My reading of the current state of the spec is that
JSON.stringify(anyEvent) is '{}' which is close to useless. This is true
for any WebIDL compliant object.
ECMAScript 5 introduced JSON and the toJSON property. Could it be
considered to make something useful out of WebIDL compliant objects
using this property?

David
Received on Wednesday, 30 May 2012 17:31:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC