I have the following JSON structure:
{
"Users": [
{
"UserName": "Administrator",
"CreateDate": "2018-01-26T13:07:28Z",
"UserId": "YYYYY",
},
{
"UserName": "test_user1",
"CreateDate": "2018-01-26T14:32:13Z",
"UserId": "XXXXX",
},
]
}
I read this file this way:
jsonIAMUsers = open('reports/1.16-IAM.json', 'r')
IAMUsers = json.load(jsonIAMUsers)
jsonIAMUsers.close()
Ho do I save the values of every UserName field into a list in order to iterate over it? I mean how can I put Administrator and test_user1 in a list?