[Feature Request] Use jq for JSON filters
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
JSON filters on Insomnia are pretty useful, but there's some cases that aren't (nicely) covered by it. I have to regularly interact with APIs that return arrays of big JSON objects (40+ properties) of which I usually need a small subset of fields. JSON path allows you to do `$.results[*]["asd","id"]` but that prints an array with no keys which is confusing when the types of the fields are similar.
[jq](https://stedolan.github.io/jq/) is really powerfull JSON processor which can transform just about any JSON input to any output you can imagine (while being really really fast). The query `.results[] | {asd, id}` would produce an array of objects with the proper keys, instead of simply the values.
Contributor guide
Research direction
No files, tests, or implementation entry points are named. Start by locating Insomnia's JSON filter handling and reviewing how the existing JSONPath behavior is tested; done should mean jq-style expressions can transform API response JSON into keyed objects as described, with coverage for the example query.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100