I need to send values to an api of another application as arrays.
the other API does only accept direct values. the json is not working.
in a cURL it looks like:
https://someurl.com/webservice?courseid=2§ions[0][type]=id§ions[0][section]=4§ions[0][summary]=newtext
but in bobble, the square brackets are used as a different meaning.
How can I send arrays?
You can use this plugin to convert json to url string JSON Serialize to URL query Plugin | Bubble
put the array as a variable inside the call, like this:
(https://someurl.com/webservice?courseid=2&[MyArray]
and then in the dynamic value of “MyArray” you can put
sections[0][type]=id§ions[0][section]=4§ions[0][summary]=newtext)
Thank you for this great hint.
I have not tried, but if the plugin does what it says, it should solve it.
it works.
This is what I tried first, but the fields do not allow editing for beginners.
I messed it up in the first run.
I found another solution:
I “serialize” manually my endpoint: I replaced the [ with %5B and the ] with %5D.
then I put new [ ] where I want to have public values.
this is already a little more understanding of coding than “no code”
and I started yesterday with bubble.
I am very happy that the forum is so helpful. I nice welcome for a beginner.
A big thank you to all who red my quetions. And much more to the ones who answered with practical solutions.