All,
I am new to JSON and python world. I'm trying to parse JSON data located here. I was able to parse JSON data using below code. My question is when I tried to check the type of my 'jsonData' object, it turned out that it is a list instead of Dictionary
. Most of JSON data I saw online consists of type dictionary
. So it is ok to have list as a type instead of Dictionary ? or do I need to convert my 'jsonData' object into Dictionary, if yes how can I achieve it ?
Code for parsing
response=urllib.request.urlopen(url)
json_string=response.read().decode('utf-8')
parsed_json=json.loads(json_string)
jsonData =parsed_json
Thanks in advance,