Hello,
I am using Gatling to load test a REST API.
I am kinda lost with the jsonPath selector.
Here is an example of json message I want to parse with Gatling :
[
{
"id":19434,
"company":
{
"id":18971
},
"owner":
{
"id":18957,
},
"process":
{
"id":18972
}
},
{
"id":19435,
"company":
{
"id":18972
},
"owner":
{
"id":18957,
},
"process":
{
"id":18974
}
}
]I want to extract all the 1st levels ids (in this case
19434 & 19434)I tried the following jsonPath expression :
jsonPath("//id").findAll.saveAs("ids"), but it returned all the ids (8 elements with my example)
Any idea how I could select only the first level
ids ?
Thanks