Significant digits when converting JSON using fromJSON in jsonlite
<p>I am converting JSON to R objects using <code>fromJSON</code> from the <code>jsonlite</code> package, but numeric values are being rounded.  How can I control the precision for converted numeric values?</p>

<p><strong>Example</strong></p>

<pre><code>library(jsonlite)
fromJSON('{"lon": -86.143278324353244}')
## $lon
## [1] -86.14328

## Desired output is -86.143278324353244
</code></pre>

<p>Looking into the <code>jsonlite</code> code, I've traced the function calls back to R_parse, in <a href="https://github.com/jeroenooms/jsonlite/blob/master/src/parse.c" rel="nofollow">parse.c</a></p>

<pre><code>.Call(jsonlite:::R_parse, "-86.143278324353244", FALSE)
## [1] -86.14328
</code></pre>

<p><strong>Other attempts</strong></p>

<ul>
<li><code>fromJSON</code> has a <code>digits</code> argument, but it isn't a valid argument with <code>toJSON</code>.</li>
<li>Other packages like <code>rjson</code> and <code>RJSONIO</code> yield similar results.</li>
</ul>