<p><pre><code>  from decimal import Decimal
  n = Decimal(&quot;1.0000000000000000000000000000001&quot;)
</code></pre>
just because float is the default, doesn&#x27;t mean you have to use it. JSON doesn&#x27;t have anything else, though.