A Jev-based filter sidecar for jq. Contribute to who/jevq development by creating an account on GitHub.
1 comment
andrewdb5 days ago
jq is awesome. However, selecting data out of larger JSON payloads can lead to some hairy jq statements.
This is where Jev comes in.
I built jevq, a small sidecar to jq. Basically, jq handles the structure, and Jev answers a semantic question about each value. Once the values I care about are found, I keep processing with jq like normal.
jq -c '.[]' tickets.json | jevq "this is an open refund request" | jq '{id, subject}'
Instead of writing a hacky regex or string match for every way a customer might ask for their money back, I just ask the question.
Read the full thread on Hacker News →
Related stories
- Hacker News · 1 points · 9 days ago
- Hacker News · 1 points · 5 days ago
- Hacker News · 3 points · 3 days ago
- Hacker News · 7 points · 11 days ago
- Hacker News · 2 points · 10 days ago
- Hacker News · 2 points · 6 days ago