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

157 views Asked by At

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.

1

There are 1 answers

0
Arnaud DUBOIS On

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