I have the following variable in my python script:
response = {"tasks": [{"attachments": [{"id": "id123xyz", "type": "ElasticNetworkInterface", "status": "PRECREATED", "details": [{"name": "john doe"}] }]}]}
I am simply trying to return the value of status. However, I'm unable to do so.
print(response['tasks'][0]['attachments'][0]['status'])? Result:PRECREATED