I have some data coming in in json format with Zap.(Attached "Long Answer")

I want to use that json data in Code Step (JavaScript), but when I do JSON.parse, the test succeeds and the Zap execution fails.(Is the input format different between test and runtime?)
For example, the following code will fail.
// *input data
// {"object":"AAA", "id":"BBB"}
const fixed_json = JSON.parse(inputData.text);
output = {"result" : fixed_json.object};
How can I get the contents of the incoming json data with inputData?
Best answer by mattc526
View original