Skip to main content

remove_path

Function remove_path 

Source
pub fn remove_path(value: &mut Value, path: &str) -> Option<Value>
Expand description

Remove a value in a JSON tree using a dot-separated path.

Returns the removed value if it existed, otherwise None. Cleans up empty intermediate objects ascending the tree.