Subj : Changing Object.prototype.toSource to use double-quotes everywhere To : netscape.public.mozilla.jseng From : Brendan Eich Date : Tue May 10 2005 07:51 pm Object.prototype.toSource uses single-quoting around property ids that are not lexical identifiers, but Douglas Crockford proposed today at the AJAX Summit that it use double-quotes, as that's more JSON-like (JSON specifies that all property ids are quoted, but I don't think we should do that at this stage, without more testing and web-spidering). Just switching things so var o = {foo: "bar", '$#@%': 42}; o.toSource() results in a string containing {foo:"bar", "$#@%":42} instead of {foo:"bar", '$#@%':42} is a small change that should be easy to adapt to, if any existing consumers of toSource output have come to depend on single quotes being used, if any quoting is used, around property ids. Comments? /be .