Re:Son: A minimal subset of JSON for machine-to-machine comm...
by steveklabnik on Sunday December 10, 2017 @02:09PM
(#15892926)
It looks like serde-json does the same: https://docs.serde.rs/serde_json/struct.Number.html
[ Parent
| on HN ]
Re:Son: A minimal subset of JSON for machine-to-machine comm...
by chrismorgan on Sunday December 10, 2017 @10:20PM
(#15894922)
Well, not the same; it eagerly interprets it as PosInt(u64), NegInt(i64) or Float(f64) rather than storing the mantissa and exponent. This is enough for JavaScript compatibility (its Number type being essentially a 64-bit float), but it’s not quite as flexible as the json crate’s approach.