Open
Description
Given this json:
{
"changes": [
{
"toHash": "0000000000000000000000000000000000000000"
},
{
"toHash": "bb7550763f970f71a9053bf238ec46815c33c4e3"
},
{
"toHash": "198fb09bb2aab83bf238ec53e01a48ac83c553d1",
"WANTED": "WANTED"
},
{
"toHash": "0000000000000000000000000000000000000000"
}
]
}
I would expect this JSONPath expression:
$.changes.[?(@.toHash!="0000000000000000000000000000000000000000")][-1:]
To give the last element, where the toHash
is not all zeros, i.e. element:
{
"toHash": "198fb09bb2aab83bf238ec53e01a48ac83c553d",
"WANTED": "WANTED"
}
However, I get an empy list []
. Ist this a bug, or am I misunderstanding something?
Metadata
Metadata
Assignees
Labels
No labels