I need to update the values in an array of objects. The keys 1 and 2 are dynamic and pulled from a JSON file.
var rows = [
{
"1": "14",
"2": "55",
"named": "name1",
"row": 7
},
{
"1": "15",
"2": "56",
"named": "nameper",
"row": 9
},
...
]
The goal is to modify the data so that any name labeled "nameper" displays percentage values.
[
{
"1": "14",
"2": "55",
"named": "name1",
"row": 7
},
{
"1": "15%",
"2": "56%",
"named": "nameper",
"row": 9
},
...
]