Jason Orendorff (2014-06-30T18:37:50.000Z)
domenic at domenicdenicola.com (2014-07-06T18:02:22.428Z)
As specified in the latest draft: 1. `JSON.stringify(symbol)` returns `undefined`. 2. `JSON.stringify([symbol])` returns `"[null]"`. 3. `JSON.stringify(object)` skips any symbol-keyed properties on the object. So far, so good, I guess. A little wonky maybe, but JSON doesn't have symbols, so sure. This struck me as funny though: 4\. `JSON.stringify(object)` also skips symbol-valued properties. That is, `JSON.stringify({"x": Symbol()}) == "{}"`. I don't know that there's anything more useful it should be doing instead. Thoughts?
domenic at domenicdenicola.com (2014-07-06T18:02:14.287Z)
As specified in the latest draft: 1. `JSON.stringify(symbol)` returns `undefined`. 2. `JSON.stringify([symbol])` returns `"[null]"`. 3. `JSON.stringify(object)` skips any symbol-keyed properties on the object. So far, so good, I guess. A little wonky maybe, but JSON doesn't have symbols, so sure. This struck me as funny though: 4\. JSON.stringify(object) also skips symbol-valued properties. That is, `JSON.stringify({"x": Symbol()}) == "{}"`. I don't know that there's anything more useful it should be doing instead. Thoughts?