Re:BigInt is finally here in ES2020
by dragonwriter on Monday March 01, 2021 @10:06PM
(#26311447)
> Sorry, why exactly can’t they also define the json.parse/stringify behavior of bigints?
Because every construct in JSON already has a defined way that it is parsed into JS and incorporating BigInt into that by default would break backwards compatibility of JS’s JSON handling.
Interop concerns make the right JSON serialization very application dependent, too.
Because every construct in JSON already has a defined way that it is parsed into JS and incorporating BigInt into that by default would break backwards compatibility of JS’s JSON handling.
Interop concerns make the right JSON serialization very application dependent, too.