title: sending NaN in json
body: <p>I am trying to encode an array which contains floats and <code>NaN</code> into JSON string from Python using <code>json.dumps()</code>.</p>
  
  <p>But the encoded JSON string is not being decoded successfully in PHP. Is the <code>NaN</code> causing this problem? How can I work around this situation?</p>