can't use jsonpath that can select the "key" instead of the "value"
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
I'm trying to chain some requests, and having an issue with jsonpath.
here's my response json:
```
{
"admin": {
"othertoken": "admin's api token"
},
"user": {
"apitoken": "user's api token"
}
}
```
on [jsonpath.com](https://jsonpath.com/), I can use `$.user.*~` to select `apitoken` for the user. however, there doesn't seem to be a way to select `apitoken` and use that in a follow up request in insomnia.
is support for the ~ operator something that could be added?
Contributor guide
Research direction
No source file, test, or entry point is identified in the issue. Start by locating Insomnia’s JSONPath evaluation and request-chaining entry points, then check how `$.user.*~` is handled; done means the `apitoken` key can be passed into a follow-up request and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100