Description
I've found this setting but there is no counterpart for Bigint
JSON does not have a native BigInt type — it is safely precise for integers only up to 2⁵³ − 1 (i.e. 9,007,199,254,740,991). Beyond this threshold, numbers lose precision and may be silently truncated or rounded when parsed in JavaScript or other languages.
It depends on the json library implementation, this particular issue doesn’t happen in Python but it’s not consistent across all languages JSON libraries
Why DRF test frontend works?
Because it uses FormData, basically it is all string data, and since the server side render is handled by python no bigint errors occour
Resources:
Conversion problems
Since javascript is a lot used, this is an issue that have to be addressed in my opinion, i know that the bigint problem with ids will happen only at very large scale and probably a lot of people will never encounter this, but if we find a solution it would be wonderfull.
COERCE_BIGINT_TO_STRING
I suggest to add a flag like this