jmespath.js icon indicating copy to clipboard operation
jmespath.js copied to clipboard

Feature request: reference original root element in sub_expression or pipe

Open MountLion opened this issue 6 years ago • 1 comments

I want get "beta" from following json but cannot: { "data":{ "a": "alpha", "b": "beta" }, "key": "b" } What if key | $root.data.@ ?

MountLion avatar Oct 16 '19 14:10 MountLion

@MountLion we used to think about specifying the $ token for this use case. However, it seems better served by the let() function instead.

springcomp avatar Aug 05 '22 07:08 springcomp