title: JSON left out Infinity and NaN; JSON status in ECMAScript?
body: <p>Any idea why JSON left out NaN and +/- Infinity? It puts Javascript in the strange situation where objects that would otherwise be serializable, are not, if they contain NaN or +/- infinity values.</p>
  <p>Looks like this has been cast in stone: see <a href="https://www.rfc-editor.org/rfc/rfc4627" rel="noreferrer">RFC4627</a> and <a href="http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf" rel="noreferrer">ECMA-262</a> (section 24.5.2, JSON.stringify, NOTE 4, page 683 of the ECMA-262 pdf at last edit):</p>
  <blockquote>
  <p>Finite numbers are stringified as if by calling <code>ToString(number)</code>. <strong>NaN</strong> and Infinity regardless of sign are represented as the String <code>null</code>.</p>
  </blockquote>