You need to change the format of your data to match the expected format of the ui_table.
the help shows you an example...
You can achieve this in the built in nodes
e.g. a function node or possibly a change node (using JSONata) or a combination of split --> join nodes