I'm new to Javascript and I'm having trouble rename a series of elements inside objects, how do I change all the names? I understand that I can change it using table[0].id = "Code", but it's not practical if my Array got too big.
{
"Table": [
{
"id": "1104567",
"year": "2015",
"Name": "Richard"
},
{
"id": "1104568",
"year": "2016",
"Name": "Rener"
}
]
}
I'm trying to get something like this:
{
"Table": [
{
"Code": "1104567",
"year": "2015",
"Name": "Richard"
},
{
"Code": "1104568",
"year": "2016",
"Name": "Rener"
}
]
}