How to extract the order id from below code
{"status": "OK", "data": {"ExecutionComplete": true, "Result": "{\"status\": \"OK\", \"data\": {\"orderId\": \"order_JUDoycmj5SoERg\"}, \"statusCode\": 200}", "JobState": "SUCCESS"}}
How to extract the order id from below code
{"status": "OK", "data": {"ExecutionComplete": true, "Result": "{\"status\": \"OK\", \"data\": {\"orderId\": \"order_JUDoycmj5SoERg\"}, \"statusCode\": 200}", "JobState": "SUCCESS"}}
Copyright © 2021 Jogjafile Inc.
Go for 2 JSON JMESPath Extractors:
First to get
Resultattribute value from the responseSecond to get
orderIdattribute value from${Result}JMeter VariableOnce done you will be able to refer the extracted value as
${orderId}where requiredMore information: The JMeter JSON JMESPath Extractor and Assertion: A Guide