jmespath / jmespath/jmespath.js

feature request: the "in" operator

Open
#7 3 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
847
Forks
101
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.