Hi i have a JSON array which looks like this.
{
"28": {
"controllerID": "28",
"DateDiff": "147",
"CycleTime": "-52"
},
"30": {
"controllerID": "30",
"DateDiff": "117",
"CycleTime": "-59"
},
"37": {
"controllerID": "37",
"DateDiff": "71",
"CycleTime": "-56"
},
"40": {
"controllerID": "40",
"DateDiff": "59",
"CycleTime": "-56"
}
}
What i want to do is for each element in the array put the data in to a DIV which looks like this
<div class="box">
<div class="col-md-12 Top">ZW01004</div>
<div id="28C" class="col-md-12 Midbox"></div>
</div>
Where the number of the array corresponds to the DIV ID, so for this example the div with id 28C would have the value -52
how can i achieve this?