SwiftPath icon indicating copy to clipboard operation
SwiftPath copied to clipboard

Parsing of advanced path not working.

Open DwayneCoussement opened this issue 7 years ago • 1 comments

func testAdvancedPath() { let result = PathParser.parse(path: "$.array[?(@.id==5)]") XCTAssertNotNil(result) }

=> This doesn't return a valid path, json to test with is following, check with http://jsonpath.com:

{ "array": [ { "id": 4 }, { "id": 5 } ] }

DwayneCoussement avatar Feb 12 '18 15:02 DwayneCoussement

Found out also not working on this example: $.array[*]

DwayneCoussement avatar Feb 12 '18 15:02 DwayneCoussement