Subj : Re: Changing Object.prototype.toSource to use double-quotes everywhere To : zwetan From : Brendan Eich Date : Fri May 13 2005 10:27 am Hi, your code is fine for trees, but it doesn't handle arbitrary object graphs (neither does JSON, but you wouldn't want a "Too much recursion" error for the edge case). Also, why not use === undefined and === null, rather than == "undefined" and == "null" in Object.prototype.toJSONString? A JS string whose characters are the sequence "undefined" should not be turned into the undefined value when serialized via JSON, it seems to me. /be .