Because each of the words have their own quotations which are then separated by their own commas the API is throwing errors as it feels it’s missing some parts of the JSON expression.
To fix this, I think I need to have Bubble not use quotation marks on each word which means the full string will be seen as one block of data. How can I achieve this?
I understand now, you’re looking for a comma separated list as a single text value.
Rather than formatting each item as JSON-safe in the expression, have you tried just returning each item trimmed (and formatted as text with a comma delimiter), and then formatting the entire result as JSON-safe?