1、var data1='{"ConnectedDevicesCountEthernet":0,"ConnectedDevicesCountUSB":1,"ConnectedDevicesCountWiFi":0}';
var data2=eval("("+data1+")");
$("#currentNum").text(data2.ConnectedDevicesCountWiFi);
2、devicesData = '[ { "ConnectedDeviceConnectionType": "WiFi", "ConnectedDeviceApplianceType": "Unknown"},\
{ "ConnectedDeviceConnectionType": "WiFi", "ConnectedDeviceApplianceType": "Unknown"}\{ "ConnectedDeviceConnectionType": "Unknown", "ConnectedDeviceApplianceType": "Other" } ]';
connectedDevicesData = eval("("+devicesData+")");
for (var i=0; i < connectedDevicesData.length; i++) {
if(connectedDevicesData[i].ConnectedDeviceConnectionType!= "WiFi"){
.......
}
}