My JSON response is as follows:
[{"interface":"WAN 1","status":"Active","ip":"192.168.254.3","gateway":"192.168.254.1","publicIp":"206.59.240.69","dns":"192.168.254.1","vlan":2,"usingStaticIp":false}]
I wanted to extract the value of "status" but getting the below error:
TypeError: 'Response' object has no attribute '__getitem__'
Code snippet:
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)
print(response["status"])
Can somebody please help me to extract the value of 'status'?
statusproperty at the index you are looking for