Repository navigation
v1.0.54
-
Add
float_roundtripfeature to enable a slower but higher precision float parser based on lexical.Enabling
float_roundtripwill use sufficient precision when parsing fixed precision floats from JSON to ensure that they maintain accuracy when round-tripped through JSON. This comes at an approximately 2x performance cost for parsing floats compared to the default best-effort precision.Unlike
arbitrary_precision, the newfloat_roundtripfeature makes f64 -> JSON -> f64 produce output identical to the input.arbitrary_precisionis for making JSON -> serde_json::Number -> JSON produce output identical to the input.serde_json = { version = "1.0.54", features = ["float_roundtrip"] }