For example, the answer returned {"success": true, "data": [{"IntDocNumber": "20600008976239"}, {"IntDocNumber": "20600008982575"}, {"IntDocNumber": "20600008982554"}, .... .......................... how do I collect the values for the keys "IntDocNumber" and then use them?
1 answer
- Add JSON Extractor to the element that returns this response.
Set it up like this:
At the output, you will receive the following variables (you can see it using the Debug Sample r and View Results Tree Tree Listener):
IntDocNumber_1=20600008976239 IntDocNumber_2=20600008982575 IntDocNumber_3=20600008982554 IntDocNumber_matchNr=3View Results Tree also allows you to test JSON Path expressions with JSON Path Tester, in this case you do not need to restart the test and add Debug Sampler

Usually, variables of this type are used, for example, in ForEach Controller.
- Thank you very much! - Dmitry Pinchuk
- There is another question: how can I, having a picture on a disk, convert it to base64 and attach it to a thread of a predetermined variable in order to send an api request to the server? Ideally, I would like to personally hear from you, Dmitry,)). I have a lot of questions on Jmeter. On the project, a task pool appeared for load-testing and I don’t really know who to contact. - Dmitry Pinchuk
- The __base64Encode () function is placed in the Custom JMeter Functions package via the JMeter Plugins Manager - Dmitri T
|


