I’m trying to get an array of values from an array of objects, looking like this:
[{"1":"a"; "2":"b"}, {"1":"c"; "2":"d"}, {"1":"e"; "2":"f"}]
My function looks like this:
var vals=[];
for(var i=0;i<testArray.length;i++){
vals.push(testArray[i].val);
}
So my array is a string, got to a Text column from external API. And that’s why I decided to use JSON.parse() first in the JS column, but it doesn’t work.
Any advices from JS masters? Thank you in advance)