I'm trying to get the values of these keys from this json response:
{
"wlan": {
"channel": 1,
"ssid": "WLAN-25UR7J",
"mac": "00:17:91:80:22:96",
"inet": [
{
"netmask": "255.255.255.0",
"ip": "192.168.2.112",
"family": "IPv4"
}
],
"stationinfo": {
"signal": -48,
"channelwidth": 0,
"bitrate": 72.2
},
"mode": "station",
"encryption": "WPA2-PSK"
}
}
I could get the values from wlan key by using this method.
json.decode(response.body)['wlan']['channel']
But I didn't work on the rest values like getting netmask or bitrate for example.
json.decode(response.body)['wlan']['inet'][0]['netmask']?