I have following as a response from a GET call and I need to use the values like 100, 101, 102, etc in the payload of another POST call.
Response:
{"id":12,"records":[{"id":100,"documentId":1, "pageNo":1},{"id":101,"documentId":2, "pageNo":1},{"id":102,"documentId":3, "pageNo":1}]}
Required Payload to be used later:
{"id":12,"records":[100,101,102]}
Values like 100, 101, 102 will increase further with increase in data and I would require all of them. I am using this records[*].id as regular expression. If I set match number value to 1, it returns me single value only. But I need all the values in the form of an array. How can I do so? I am using JSON JMESpath Extractor in JMeter.