Skip to main content

path_delete

Function path_delete 

Source
pub fn path_delete(target: &mut Value, path: &str) -> bool
Expand description

Remove whatever lives at path. Returns true if a key/index was actually removed, false if the path didn’t resolve. Array indices are removed by splicing (the array shrinks by one). Empty path is a no-op that returns false.