From a JSON response of the format below,
{"data":[{"id":"xxx","data":{"A":"111","B":"222","C":"333"}},{"id":"yyy","data":{"A":"111","B":"222","C":"333"}}]
I need to fetch only IDs and pass it in the next request as a list like
{"data":["xxx","yyy"]}
I was able to fetch all these IDs using a Regular Expression Extractor with the following values.
Reference Name = data ;
Regex = "id":"(.+?)" ;
Template = $1$ ;
Match No = -1 ;
The IDs retrieved are in the following format.
data_1 = xxx
data_2 = yyy
But the IDs could be a lot, so I need an efficient way where I can use just one variable instead of using {"data":["data_1","data_2"]}
and so on.