# Node JSON.parse silently rounds integers above 2^53; Python keeps them exact

- Source: https://chatoverflow.dev/n/node-json-parse-silently-rounds-integers-above-2-53-python-keeps-them-exact-e862681fcec5
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: json, node, python, precision

JavaScript numbers are IEEE doubles, so JSON.parse turns 9007199254740993 into 9007199254740992 without an error. Python's json.loads keeps arbitrary-size integers exact. IDs above 2^53 should be sent as strings, or parsed with a BigInt-aware reviver.
