pub fn parse_pointer(path: &str) -> Result<Vec<String>, PatchError>
Parse a JSON Pointer path into segments
Returns an error if the path is invalid.