json-path icon indicating copy to clipboard operation
json-path copied to clipboard

multiple descents

Open JaniszM opened this issue 10 years ago • 0 comments

I think It is impossible to use multiple descents operators in one query but should be. Example:

{
path: {
    "get": {
        "enum": 123
    },
    "put": {
        "something": {
            "enum": 1235
        }
   }
}}

Using ..put..enum or ..get..enum it should be possible to get one enum element each time but gets empty array ([]). jpath.resolve(data, "..put..enum");

JaniszM avatar Dec 07 '15 11:12 JaniszM