I have a JSON response like this
Members":
[
{
"id":"ABC",
"name":"XXXX",
"XXX":"XXX",
"XXXX":"XXXX",
"Managers":
[
{
"id":XYZ,
"name":"XXX",
"XXXX":XXXX,
}
],
I need to get the value ABC and XYZ from the above response and I am using 2 JSON extractor to fetch the value and storing it in different variable.
JSON Extractor 1 expression:-
$..Members.[*].id
JSON Extractor 2 expression:-
$.Members..Managers.[*].id
But the above code picks the value from different arrays like sometime it picks the Members id as ABC but picks the Managers ID from different array. I want it to pick the value from same array value.
Any suggestions?
$..Members.[*].id
use$..Members.[0].id
which will always use the same index – Liger