I hate getting stuck on such basic things but I’m having troubles putting an array into a JSON output.
The goal is to convert array of [tag1, tag2, tag3] into json {“tags”:[“tag1”,“tag2”,“tag3”]}
This is the array output:
Then I want to send a JSON string to another API. The API is expecting: {“tags”:[“tag1”,“tag2”,“tag3”]}
There is something I’m not getting with the translation.
I’ve tried using this in the API JSON field: {“tags”: {{98.output}}}
But this gives me: {“tags”: tag1, tag2, tag3} (no quotations)
I’ve also tried “Aggregate to JSON” but output is putting the whole thing in square brackets:
If it helps to see the Data Structure setup, I created this structure to handle the tags:
Any thoughts on a simple translation like this?