Skip to main content

Module mutator

Module mutator 

Source
Expand description

Optional jshift-backed in-place JSON field mutation helpers.

Enabled with the jshift Cargo feature. Not used by the core indexing path; provided for tooling that streams JSONL manifests or agent side-channels without full serde_json re-serialization.

Why optional / not default: criterion benches on rustbrain-shaped workloads show serde_json wins for full typed encode/decode and pretty CLI JSON; jshift wins for sparse path get and in-place patch on larger buffers. See docs/JSON_STACK.md in the repository root.

Functionsยง

extract_json_field_slice
Zero-copy extraction of a JSON field slice from raw bytes.
update_json_field_inplace
Mutate a JSON byte buffer in-place using jshift.