title: Parse json in javascript - long numbers get rounded
body: <p>I need to parse a json that contains a long number (that was produces in a java servlet). The problem is the long number gets rounded.</p>
  
  <p>When this code is executed:</p>
  
  <pre><code>var s = '{"x":6855337641038665531}';
  var obj = JSON.parse(s);
  alert (obj.x);
  </code></pre>
  
  <p>the output is:</p>
  
  <pre><code>6855337641038666000
  </code></pre>
  
  <p>see an example here: <a href="http://jsfiddle.net/huqUh/" rel="noreferrer">http://jsfiddle.net/huqUh/</a></p>
  
  <p>why is that, and how can I solve it?</p>