Library used by snitch-wasm
to transform JSON data.
Currently only has support for "overwrite", "mask" and "obfuscate".
```rust use snitch_transformer;
fn main() { let json = r#"{"object": {"hello": "world"}}"#;
let updated_json = transformer::overwrite(json, "object.hello", r#"test"#).unwrap();
println!("updated json: {}", updated_json);
// {"object": {"hello": "test"}}
// Keep in mind that replace value will be used as-is
let updated_json = transformer::overwrite(json, "object.hello", "test").unwrap();
// Will result in: {"object": {"hello": test}}
// OR
let updated_json = transformer::mask(json, "object.hello", '*');
// updated_json == {"object": {"hello": "*****"}}
// OR
let updated_json = transformer::obfuscate(json, "object.hello");
// updated_json == {"object": {"hello": "woAF1"}}
} ```
overwrite()
"123"
)mask()
0
*
obfuscate()