Looking at my JSON file:
{
"stats": {
"operators": {
"recruit1": {
"won": 100,
"lost": 50,
"timePlayed": 1000
},
"recruit2": {
"won": 200,
"lost": 100,
"timePlayed": 2000
},
"recruit3": {
"won": 50,
"lost": 10,
"timePlayed": 500
}
},
"modes": {
"secure": {
"won": 80,
"lost": 40,
"bestScore": 7582
},
"bomb": {
"won": 12,
"lost": 18,
"bestScore": 4500
}
}
}
}
I am trying to present this data in a table format: .
I attempted to use a for-in loop, but only managed to get the names without their corresponding values.