Also @RicardoE105 just a small question. How can we remove the [Array:] keyword and just display the array.
Im using the following to get the array from previous node.
@RicardoE105 correct me if I’m wrong but the “Array:” is simply how we’re visualizing the array in n8n front end (i.e. basically linting it). Same thing happens if you add in a JSON object (Object:). So far, any api or node that I’ve used with Objects/ Arrays as parameter inputs have worked.
Do let me know @Asit_Joshi if you’re getting a different experience when using it.
That’s my understanding as well. @Asit_Joshi can you confirm that the data type of the chartIds parameter is expected to be an array? Asking this because yesterday I came across an API that expected a JSON object to be sent as a string.
More than happy to take a look if you can share the name of the API you are sending the data to
Yes, the [Array: ...] or [Object: ...] does not get sent anywhere. It literally just means this is an actual Array or Object and not just a string.
And if you want to convert it to a string .toString() would be the wrong method to use as the output would look different. You would have to use JSON.stringify($node...).