Array into Table Column

Hello All,

I have a RetoolDB with a column that has an array. I want to display only the string "store_id" in the array so the table will only show "123456, 698779, 235698". I tried using {{JSON.parse(item}} or {{JSON.parse(item.store_id}} but it didn't help. Any help would be appreciated!

This is my RetoolDB:

This is the Table in my app:

Thanks!

You will need to wrap the current mapped value with formatDataAsObject and then you can call out the properties you require as Tags instead:

formatDataAsObject(JSON.parse(item)).store_id

This is an example pulling from a similarly structured array, but pulling out a custom name property and displaying as tags.

JSON:

TAGS:

2 Likes

Worked like a charm! Thanks @pyrrho

1 Like