decodeResponse parses mixed field and index path segments