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

feature request: the "in" operator

Open highfield opened this issue 9 years ago • 3 comments

Just a suggestion, because I feel the "in" operator would be useful in several contexts. A possible syntax could be as follows: locations[?state in ['WA', 'CA', 'NY']].name

However, the filter might be exposed as a simpler function as follows: locations[?in(state, ['WA', 'CA', 'NY'])].name

Excellent work, though!

highfield avatar Aug 04 '15 13:08 highfield

+1

MartinHelmut avatar Jun 09 '16 08:06 MartinHelmut

+1

IAIAE avatar Sep 15 '18 07:09 IAIAE

+1

yuhymuk avatar Jun 23 '23 10:06 yuhymuk