Hi All,
I need some pointers on how to format data I am receiving from an API call, so that it can be piped out into an external CSV file.
The inbound data has been parsed, created as a CSV table and then appended into an Array and looks like this:

After all the records have been processed via the API call my array looks like this:

Each "ID,CID,Current_IP…” line being the result of one iteration of the Apply to Each API call.
The end result of this workflow gives me this CSV:


Which is clearly not in a usable format, but at least it’s piped out the raw information.
How do I get the information formatted like:
ID,CID,Current_IP
nff7f3367cc394513937c5c253f63d57a,CID_123,192.168.0.1
abc3456430adior,CID_456,192.168.100.100
I suspect it's something to do with the /r that have been inserted? This is my first workflow, and I'm pretty sure there are many ways to streamline the process, so guidance is appreciated!
Thanks