Cargo Features

jsonc-parser has no features set by default.

[dependencies]
jsonc-parser = { version = "0.23.0", features = ["preserve_order", "serde"] }
preserve_order = indexmap

Enables preserve_order of serde_json

serde_json:

Make serde_json::Map use a representation which maintains insertion order.
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.

Affects value::Map

serde = serde_json

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?
serde_json preserve_order? serde?