Skip to main content

EXACT_JSON_INTEGER

Constant EXACT_JSON_INTEGER 

Source
pub const EXACT_JSON_INTEGER: i128 = _ /* 9_007_199_254_740_992i128 */;
Expand description

The largest integer a JSON number carries without loss.

A JSON number is a double, so 9007199254740993 does not survive the round trip through one. tests/interop-corpus/README.md states the rule the corpus is written to — “a 64-bit integer is a string” — and this is where it is enforced rather than only documented.