But when I try to parse that JSON in another step, I get an error “Source Is Not Valid JSON”. When I run the Parse JSON module on its own and copy and paste the output from the HTTP module as the content, it’s parsed successfully. Whyyyyyyyyyyyy?
In case it’s relevant, the content encoding of the JSON is shown as br in the Integromat developer tools.
Make sure you are not using any invalid spaces like these.
The reason why nobody found an answer earlier, is because this forum software normalizes (converts) all the different types of spaces to the standard space, so it becomes valid JSON when you pasted the output bundles in this forum.
You can try manually deleting and retyping all spaces again, even in the aggregator modules separator field.
Nice idea but I’ve just tried removing all spaces from my response and unfortunately that doesn’t fix the issue. This is the only module where I’m adding spaces and I’ve double checked that I’ve not added trailing whitespace, for example, elsewhere in the scenario.
I’ll need the full scenario blueprint and output bundle of module 39.
2. Scenario blueprint
Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
(Note: Exporting your scenario will not include private information or keys to your connections)
Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.
A.
Save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Alright so I’ve done some more testing and it looks like you were right about a space causing the issue, when I set the content of my webhook response to:
So that leaves my trying to figure out how to remove that space. Using remove and replace doesn’t work. Do you know how I can stop Make from adding it / remove it from the response content?
The Away array content that I’m inserting into the response is just an array like this -
You should probably be using the join function to join the array items by a comma instead of leaving it to chance (auto joining with comma AND a non-standard space).
{{ join(39.away; ",") }}
By directly mapping an array into a field, you are telling make to do whatever they want to convert the array into a string, and that happens to use something that breaks JSON.