I have some data coming in in json format with Zap.(Attached "Long Answer")
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/9aa1f9de-7f98-40cd-b17e-4ba08790467f.png)
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