freestrings / jsonpath

JsonPath engine written in Rust. Webassembly and Javascript support too

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to match with nested query selector

aDotInTheVoid opened this issue · 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/)