What do I need to do in ActivePieces to parse data from a Foundation form? I can't work this out. The form is working and is connected to Google sheets. But I need to have some JavaScript to parse the json.
The JavaScript code is the following:
export const code = async (inputs) => {
return JSON.parse(inputs.body);
};
But I only get an error:
Unexpected token u in JSON at position 0
when I submit the form. Any ideas what I might be doing wrong? I have posted on the ActivPieces forum but didn't much help. This can only be something simple.
Data: