I'm facing a challenge with the JSON output below, specifically when dealing with certain characters.
JSON String
{
"results": {
"RESULT1-Node1": {
"Network.MS": "405",
"Down_time": "131"
},
"RESULT4-Node2": {
"Network.MS": "451",
"Down_time": "141" }
}
}
Javascript
for (var resultBank in jsonData.results) {
var rootType = resultBank ;
console.log(rootType );
for(var result in eval("resultBank."+JSON.stringify(rootType)) ){
console.log(result[result]);
}
}