I have multiple nodes manipulating JSON which come together in an aggregate node which is inserted into the JSON body of a http request.
The issue appears to be that once the aggregated json is dropped into the JSON body, extra brackets appear and the JSON is invalid.
Error: “JSON parameter need to be an valid JSON”
Here’s a snippet of the failing json:
[{“type”: “text”, “text”: “screenshot.com”}},{“type”: “paragraph”, “content”: [{“type”: “text”, “text”: “Link to result”, “marks”: [{“type”: “strong”}}},{“type”: “paragraph”, “content”: [{“type”: “text”, “text”: “resultlink.com”}}}}
You can see the last line after “content” opens with square bracket, but only closes with a bunch of curly brackets etc.
The JSON generated in the previous node (aggregate) does not have this issue - it only appears to happen when its dropped into the body of the http request node.
Information on your n8n setup
- n8n version: n8n@1.61.0 (I tried on 1.58 and 1.60 as well)
- Database (default: SQLite): default
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
- Operating system: Windows
