Kong / Kong/insomnia

can't use jsonpath that can select the "key" instead of the "value"

Open
#2,982 2 comments 0 reactions 0 assignees View on GitHub
needs-triage
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.