title: Retrieving key, value of json data python
body: <p>I have a Json file with a dictionary that looks like </p>
  
  <pre><code>{"tvs": 92, "sofas": 31, "chairs": 27, "cpus": 007}
  </code></pre>
  
  <p>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.</p>
  
  <pre><code>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
  </code></pre>