If numbers in JSON are outside JS's safe range, they get silently converted to JS floats. The new reviver parameter to JSON.parse allows to parse to BigInteger.
The main issues are:
- backwards compatibility (although it's been 10 years since it was baseline)
- the need for a
Json.Decode.bigInteger
- in general, a way to let users use
BigInteger - possibly making it a number, possibly not
If numbers in JSON are outside JS's safe range, they get silently converted to JS floats. The new
reviverparameter toJSON.parseallows to parse toBigInteger.The main issues are:
Json.Decode.bigIntegerBigInteger- possibly making it anumber, possibly not