Formatting data as array

hey guys im trying to make an http request and I need to send a value in the request body as an array but if i add anything to the json body other than that one value it puts the value between quotation marks instead of sending it as an array.

if i add anything to the json body other than that one value it puts the value between quotation marks

Hi @Trash, I am not quite sure I fully understand the problem. Everything you put between {{ and }} will be interpreted as JavaScript by n8n. In JavaScript, strings are denoted by quotes. So if you define an array of strings in your expression, seeing double quotes around your text values would be expected.

Perhaps you can confirm which data exactly you are sending to your HTTP request body and how you would your request body to look like?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.