i have a json file representing a table with two columns.
the Column values are in an array
{
'columnA':[1,2,3],
'columnB':[6,7,8]
}
i need to convert it to an array of rows:
[
{'columnA':1, 'columnB':6},
{'columnA':2, 'columnB':7},
{'columnA':3, 'columnB':8},
]
transposeresults in an error: Cannot index object with number forcing string keys withto_entriesor evenmap(to_entries)didnt lead to anything usefull yetmapwill only itterate one column and not result in any key access to the second column