How to store and read array to CSV with column names?

It seems you are using arrays here?

${urls[1][columnName]}

Arrays need a numerical index. But maybe if columnName is a variable, this could work.