data = {
const newArray = [];
for (let i = 0; i < data_unprepared.length; ++i) {
const oldObject = data_unprepared[i];
const newKeys = Object.values(data_raw[3]);
const newObject = {};
newKeys.forEach((newKey, index) => {
const oldKey = Object.keys(oldObject)[index];
newObject[newKey] = oldObject[oldKey];
});
newArray.push(newObject);
}
return newArray;
}