Arrays - My biggest enemy

Hi,

I'm trying to setup retool for some internal Tools to enhance and care our database.

Therfore I have a postgres-query which provides me a result of 1 row. Within that row there are several columns and 1 column, where I provide URLs as an array.

I can display all informations from any column on my form. Also I can choose, which entry from the array I want to display - {{ item.inputurl[0] }}, {{ item.inputurl[1] }} and so on.

What I don't get to work is: I want to display the whole array in a list-component, so that all urls are displayed and I can click them.

Is there any way I can do this?

Thank you in advance,
Clemens

Would this help?

let str = "[1, 2, 3]";
let arr = JSON.parse(str);

console.log(arr); // Output: [1, 2, 3]

Hi, and thank you for the fast help. I solved it with this Data Source and a linklist-component:

{{ Array.isArray(inputNewDetail.data.inputurl[0]) ? inputNewDetail.data.inputurl[0].map(url => ({ label: url, value: url })) : [] }}