fn path_to_values(path: &Vec<PathElement>) -> Vec<Value>
Convert Path to JSON values for serialization.