JSON.stringify and Date serialization issues

Erik Arvidsson erik.arvidsson at gmail.com
Tue Aug 12 15:08:38 PDT 2008


+es4-discuss

On Tue, Aug 12, 2008 at 10:22, Douglas Crockford <douglas at crockford.com> wrote:
> There are currently three effective ways to change the default. That is enough. The replacer is able to choose between the original value and the toJSON candidate.

Changing Date.prototype.toJSON is not acceptable since it might break
other scripts on the page.

What are the other 2 ways?

-- 
erik


More information about the Es4-discuss mailing list