Arnaud DUBOIS
Arnaud DUBOIS

Reputation: 99

Insomnia : Need to get a variable in a JSON Array which does not have name

Here is the JSON I have and I would like to get the ID Value using a Filter (JSONPath)

[{"ID":1}]

I cannot modify my input.

enter image description here

enter image description here

I tried a lot of things and did a lot of researches but say that I need to give my array a name.

Upvotes: 0

Views: 696

Answers (1)

Arnaud DUBOIS
Arnaud DUBOIS

Reputation: 99

I found the solution I had to use $.[0].ID

Upvotes: 0

Related Questions