Test files › Structured data › precision-loss.json
Sample JSON file
Integers and decimals that exceed IEEE-754 double precision: 64-bit IDs, high-precision decimals, and values at MAX_SAFE_INTEGER boundaries.
↓ Download precision-loss.json| Filename | precision-loss.json |
| Format | JSON |
| Size | 319 bytes (319 bytes) |
| MIME type | application/json |
| SHA-256 | 7075086fd6d6809ccd379203d3d4f803c22d4c44593b109f0032b1a8b9ba2e08 |
What this file catchesThe classic JavaScript bug where a 64-bit database ID arrives as 9007199254740992 instead of ...993. Any client parsing this into a double corrupts the values silently. Correct handling means parsing large integers as strings or BigInt.
Download & verify
curl -fsSL -o "precision-loss.json" "https://files.hexaqa.com/json/precision-loss.json"
curl -fsSL "https://files.hexaqa.com/json/precision-loss.json" | sha256sum
# expect: 7075086fd6d6809ccd379203d3d4f803c22d4c44593b109f0032b1a8b9ba2e08