Im having trouble parsing through my response in python, any feedback on what I need to change is appreciated!
url = 'https://someURL'
headers = {'Authorization' : 'Bearer <MyToken>'}
r = requests.get(url, headers=headers)
#This part prints entire response content in a text like format [{'x':'' ,'y':'', ...etc},{'x':'' ,'y':'', ...etc},...etc]
jsonResponse = r.json()
print("Entire JSON response")
print(jsonResponse)
# when I try to parse into each item and get the key value, I get an error
print("Print each key-value pair from JSON response")
for key, value in jsonResponse.items():
print(key, ":", value)
This is the error I get
Traceback (most recent call last):
File "blueiInitialSync.py", line 131, in <module>
for key, value in jsonResponse.items():
AttributeError: 'list' object has no attribute 'items'
bash: parse_git_branch: command not found

jsonResponseis of typelist. Tryfor key, value in jsonResponse[0].items():