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.
I would like to know why the Aggregate or Merge nodes don’t just return the json as a blob so I can just substitute it - I mean with this I may as well have just inserted the output from the Edit Fields node 2 steps back - I’m just referring to two separate json objects here anyway…