Open kintarowins opened 3 years ago
The upcoming let()
function in JMESPath Community is specifically designed to achieve this scenario.
Thanks @springcomp. That's cool although I still can't grasp the example given in the preview documentation. My use-case is straight-forward, given a search expression, return the full path to the result.
Oh maybe I misconstrued your example. Unfortunately no, that's not something that would be easily done in the general case I'm afraid. Seems similar to this request if I'm not mistaken?
for example I would like to query
people[?first=='James'].last
with this jsonand instead of just getting the result
d
, I'd like to also get the full path to it .e.gpeople[0].last