fn with_parent<T>(
attributes: &mut Map<String, Value>,
pointer: &str,
edit: impl FnOnce(&mut Value, &str) -> Result<T, EditError>,
) -> Result<T, EditError>Expand description
Runs edit on the value holding the last segment of pointer (non-empty) inside
attributes, with that segment unescaped.