I am trying to get an array of numbers inputted from an api
not sure how to get the arrays input also any time i put through the data it comes as “{”_class":“ListWrapper”,“query”:{“t”:“Static”,“data”:[" before the arrays.
The problem is that you don’t explain how you push the data (how the list of number is generated?). If your data is a list of text (number)… you can use :converted to number on this list.
of course you know that array=[bubblelist] will not convert a bubble list in an array right? In your screenshot you are literally creating an array with one element that is a bubble list, the lenght will always be 1 and the array will not contain the valies of the list.
Have you read the docs?
the documentation explains how to work with bubble lists. have a look at the link on my previous post.
There is also inline documentations in the editor.
Have a try with that first
A json formatted array is a string, which is different from an array which is different from a bubble list.
It’s actually very easy, but you need to study the docs
This is the basic of plugin building in bubble and it looks like you still need to grasp it.
A good way to learn how to deal with it is to work on a test plugin where you just play with passing different data types to the action. Again, the docs have everything you need to guide you.
Once you grasp the basics you can move on implementing your logic.
If you struggle saying “I tried but didn’t work” won’t help you. Try to post examples of what you tried and what was the unexpected result.
Of course all this is assuming that you know js, if you don’t feel confident with it freecodecamp has good free learning resources.