Accessing JSON object and Arrays
Accessing JSON objects and arrays is easy as 1-2-3. The below link will show you a detailed example of how to do it correctly, you're welcome to play around with my JSON data if you want. I know it's kinda long.
by Duke Dinh
HTML
<table id="dataTable"></table>
JavaScript
var jsonobj = {
"overview": [{
"controllerName": "SDN-BRANCH-WLC7K",
"wirelessNetworks": "4",
"goodAccessPoints": "50",
"badAccessPoints": "6",
"activeClientDevices": "400",
"rogueAPs": "4",
"rogueClients": "20",
"totalBandwidth": "100 Mbps",
"softwareVersion": "8.0.1.0",
"upTime": "6 Days, 20 Hrs, 30 Mins",
"systemTime": "14:00 PM",
"modelNumber": "8500",
"location": "Building 14 Cisco Way"
}],
"topApplications": [{
"description": "Misc. Web",
"usage": "1.49 TB",
"percentUsage": "15%"
}, {
"description": "YouTube",
"usage": "1.30TB",
"percentUsage": "14%"
}, {
"description": "Adobe Flash",
"usage": "1.25 TB",
"percentUsage": "13%"
}, {
"description": "CDNs",
"usage": "600 TB",
"percentUsage": "10%"
}, {
"description": "Netflix",
"usage": "500 GB",
"percentUsage": "9%"
}, {
"description": "Skype",
"usage": "400 GB",
"percentUsage": "8%"
}, {
"description": "Non-web",
"usage": "300 GB",
"percentUsage": "7%"
}, {
"description": "Facebook",
"usage": "200 GB",
"percentUsage": "5%"
}, {
"description": "Dailymotion",
"usage": "100 GB",
"percentUsage": "4%"
}, {
"description": "Misc. Video",
"usage": "50 GB",
"percentUsage": "2%"
}],
"topAccessPoints": [{
"description": "SJC22-11A-AP1",
"usage": "900 MB",
"clients": "250"
}, {
"description": "SJC14-12A-AP-A11",
"usage": "800 MB",
"clients": "230"
}, {
"description": "SJC14-41A-SAP-RANGOEL",
"usage": "700...