I'm looking for a tool like jq but which is easier to use for normal use cases (but less powerful), before I write one myself.
I often find myself interacting with json stream, it is very natural for a program to produce a stream of JSON which other programs can filter.
jq is wonderful for complicated queries, and I know it well enough to write most of the queries I use without reference to documentation. However, for simpler things the amount of boiler plate can be a little excessive. For example look at
program | jq 'select(.field | test("match", i))'
and compare it to
program | grep -i match
Is there any tool which is more of a middle ground: less power but less boiler-plate.
Maybe something like:
program | json-filter --field match --filter key1,key2,key3