Cargo Features

jsonc-parser has no features set by default.

[dependencies]
jsonc-parser = { version = "0.26.2", features = ["cst", "preserve_order", "serde", "error_unicode_width"] }
cst

Affects jsonc-parser::cst, string::parse_string

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
error_unicode_width = unicode-width

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?
unicode-width error_unicode_width?