Getting a bad api string

I am trying to push a list of numbers from my bubble workflow to a custom plugin I’m making

heres getting data: Screenshot by Lightshot

this is making it prettify but then when i push it though

it gets the numbers as a string right now

then when I push the data into the plugin

the list it gets a bad json im just trying to get simple number list
the plugin thinks its a string

I have worked 8 hours straight on this. any help is great.

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.

on the user side it copied the text fine as an array. its when I push it to my plugin its not working.

this is the same data api call user view is perfect Screenshot by Lightshot

bump. LEt me know if anyone knows why its passing the data from any api as this

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?

1 Like

how can I convert it?

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 :upside_down_face:

no help yet, can’t pass json formatted array to server side plugin bubble.io

not sure why its so hard to pass an array from api connector into an input in a workflow to do math on the array of numbers.

I want to plug in my dynamic data list of numbers into here

const historicalPrices = [1,5,6,7];

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 :upside_down_face:

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.