Skip to main content

redact_value

Function redact_value 

Source
pub fn redact_value(value: &mut Value)
Expand description

Redact every string leaf of a JSON value in place.

The shape the telemetry writer already used, moved here so both writers share it. Walking the tree rather than regexing the serialised line is the safe form: a replacement lands inside a JSON string and cannot break the structure around it.