I have a Json file with a dictionary that looks like
{"tvs": 92, "sofas": 31, "chairs": 27, "cpus": 007}
I'm trying loop though the dictionary and print the key with its corresponding value, in my code I'm getting a too many values to unpack error.
with open('myfile.json', "r") as myfile:
json_data = json.load(myfile)
for e, v in json_data:
for key, value in e.iteritem():
print key, value