JSON.stringify and Date serialization issues
erik.arvidsson at gmail.com
Tue Aug 12 15:08:38 PDT 2008
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?
More information about the Es-discuss