douglascrockford/JSON-js — pull request #45 by sstur (2012-10-29 04:40:45+00:00)
Title: Add support for dates from another context

Date.prototype is extended in this context with toJSON but dates from another context/frame slip through as plain objects. Object.prototype.toString should be used to catch dates similar to how it is used for arrays.