json-path
json-path copied to clipboard
multiple descents
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");