Skip to main content

move_at_path

Function move_at_path 

Source
pub fn move_at_path(
    root: &mut Value,
    from_segments: &[Segment],
    to_segments: &[Segment],
) -> Result<()>
Expand description

Move a value from one path to another within the same document. Removes the value at from_segments and inserts it at to_segments.