Search code examples
arraysjsonjmeterbeanshell

Jmeter: how to extract json object of array from repsosne using beanshell post process


Im new to jmeter and wanted to extract the array data from json object i have a Json as below

{ "error": false, "data": { "seq": [ "71128dfa", "cbfda925", "9d9bfa68", "0ca86cf2", "8bc3cfa7", "4ea9aee3" ], "request_id": "1db799cf-8f2b-4982-a23e-b2fb95b609b9" } }

i need to get the data which is under seq array


Solution

  • You can use Json Extractor to extract it

    you need to pass the json path expression to retrieve it

    enter image description here

    enter image description here