I am going through a json file and extracing "name" and "id" field. I need to form a data dictionary and store "name" and "id" fields in data dictionary called my_dict
report=("'name':{}, 'id':{}.format(content['name',content['id']
print(report)
'name': report1, 'id':1
I need to create and data dictionary and update the dictory with report values
I tried this:
my_dict.update(report)
I am getting this error:
ValueError: dictionary update sequence element #0 has lenght1, 2 is required