Hello could someone help me explaining me how to make the simplest post call sending an array? it should be the easier thing, but I dont know how should be done.
I tried to create a string iterating, I tried to “create” a push function in a json but no luck, it looks like the harder things to make online it’s the easier but the easier things to do are the most difficult liket operate with arrays… someone could give me some idea?
You need to convert the array into a text string for this to work. You can use the join() function to combine the text for a simple array like that. Make sure that the “,” is between each value.
Hi, thank you for your reply, I tried already what you said but it doesnt work, the result is this:
testArrayPost: [“testo1,testo2,testo2”]
it creates a single array, what I would need is this:
testArrayPost: [“testo1”, “testo2”, “testo2”]
is it or am I missed something?
I addition using the split with “,” comma means I cannot use commas in the test of my arrays…
The only way I found is to send a full string with a splitter like “||” then making a JS testArrayPost.split(‘||’) on my server before to use the data, in this way it works but I thought there would be a way to make it directly…
I’m here again with the same problem, If I use a simple demo I can easily understand but as soon as I get into a more complex object I stuck for hours without to find the way out…
What I would like to be able to get is to send the array with all the details for each scene, as you can see I tried using “toArray” but it wont work, the result I get is this:
Could you please create a separate topic for this?
While it’s tempting to continue an existing thread, a more effective approach would be to start a new topic. It helps other community users to respond to your query, and keeps our space organised for everyone. If you start a new conversation you are also more likely to get help from other users. You can refer others back to a related topic by including that link in your question. Thank you for understanding and keeping our community neat and tidy.
The “New Topic” link can be found in the top-right of the header: