Cargo Features
Sonic-rs has no features set by default.
[dependencies]
sonic-rs = { version = "0.3.12", features = ["arbitrary_precision", "sort_keys"] }
- arbitrary_precision
-
Use an arbitrary precision number type representation when parsing JSON into
sonic_rs::Value
. This allows the JSON numbers will be serialized without loss of precision.Affects
value_trait::JsonValueTrait.as_raw_number
… - sort_keys
-
Sort the keys when serializing
sonic_rs::Value
.