Skip to main content

map_keys

Function map_keys 

Source
pub fn map_keys(root: &Value, path: &[Seg]) -> Option<Vec<String>>
Expand description

The mapping keys at path, in document order. None when the path doesn’t resolve or names something that isn’t a mapping.

Non-string keys are skipped: the editor addresses entries by name, so a key it cannot name is one it cannot reorder or rename.