My data is currently formatted as below
{
music: {
timestamp: 34953045,
value: 290348530945
},
phone: {
timestamp: 34953045,
value: 2349234.23
},
health: {
timestamp: 34953045,
value: 2938.2039
}
}
However I would like to transform my data to
[
{
timestamp: 34953045,
value: 290348530945
},
{
timestamp: 34953045,
value: 2349234.23
},
{
timestamp: 34953045,
value: 2938.2039
}
]
I want to fill rows in an mui-datatable but can't seem to be able to get this to work.