Skip to main content

json_unset_path

Function json_unset_path 

Source
pub fn json_unset_path(root: &mut Value, parts: &[&str]) -> CoreResult<bool>
Expand description

Remove a key at a dot-delimited path in a JSON object.

Returns true if a key was removed, false if the path didn’t exist.

§Errors

Returns CoreError::Validation if the path is empty.