Hi, I am new to python and working on the dictionary. can anyone guide me on how to access visibilites from below code :
dev1 = {
“status”: “OK”,
“data”: {
“results”: [
{
“tradeRelCode”: “ZT55”,
“customerCode”: “ZC0”,
“customerName”: “XYZ”,
“supplierCode”: “ZC0000816”,
“supplierName”: “abc Systems Co.,Ltd”,
“type”: “DIRECT”,
“startDate”: “2017-04-13T00:00:00.000+0000”,
“customerRef”: “null1”,
“status”: “REJECTED”,
“supplierIsMajor”: “null1”,
“shareCorporateSAQ”: “null1”,
“shareEnvironmentalSurvey”: “null1”,
“initiatedOn”: “2017-04-13T14:33:21.891+0000”,
“tier”: “null1”,
“visibilites”: [
{
“code”: “ZS0004207”,
“name”: “Aabc Systems Co.,Ltd”,
“siteVisibilityMap”: {
“SAQ”: 0,
“DETAILS”: 0,
“CONTACTS”: 0,
“SUPPLEMENTAL_SURVEYS”: 0,
“AUDIT”: 0
},
“customerRef”: “null1”
}
]
}
],
“pageNumber”: 3,
“limit”: 1,
“total”: 186
}
}
dev1[‘data’][‘results’][‘visibilities’] - I am getting error. please help