I’ve tried to wrap the data using JSON.stringify() but it won’t work. I even tried to put in code to aggregate all the data but all the same issue.
For reference, I can do this much easier in make.com. Make combines all the values into text files automatically and then passes it to my http request.
JSON.stringify() automatically adds quotes around your string, so you don’t need to add your own ones. If that doesn’t solve your problem please share the rendered output that your expression produces. I’ve corrected it here:
OK, looks like I was wrong about JSON.stringify() automatically adding quotes. I think the problem is that your string includes quotes itself, so they need escaping.
This version makes sure the surrounding quotes are added, and also escapes any quotes that are in the content: