jsonpath icon indicating copy to clipboard operation
jsonpath copied to clipboard

Fails to match with nested query selector

Open aDotInTheVoid opened this issue 3 years ago • 0 comments

Path: $[*][?(@.inner.for.inner=='u8')]

JSON:

{
    "0:4": {
      "id": "0:4",
      "inner": {
        "for": {"inner": "u8", "kind": "primitive"}
      }
    }
}

jsonpath matches to []

Expected:

[
   {
      "id" : "0:4",
      "inner" : {
         "for" : {
            "inner" : "u8",
            "kind" : "primitive"
         }
      }
   }
]

(from jayway, via https://jsonpath.herokuapp.com/)

aDotInTheVoid avatar Feb 20 '22 23:02 aDotInTheVoid