Cargo Features
serde_json_experimental has no features set by default.
[dependencies]
serde_json_experimental = { version = "1.0.29-rc1", features = ["preserve_order", "arbitrary_precision", "raw_value"] }
FEATURES
- preserve_order = indexmap
-
Use a different representation for the map type of serde_json::Value.
This allows data to be read into a Value and written back to a JSON string while preserving the order of map keys in the input. - arbitrary_precision
-
Use an arbitrary precision number representation for serde_json::Number. This allows JSON numbers of arbitrary size/precision to be read into a Number and written back to a JSON string without loss of precision.
Affects
number::TOKEN
,number::NumberFromString
,number::NumberDeserializer
… - raw_value
-
Provide a RawValue type that can hold unprocessed JSON during deserialization.
Affects
read::Read.begin_raw_buffering
,read::Read.end_raw_buffering
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- indexmap preserve_order?
-
Enables indexmap ^1.0