title: For each loop with JSON object python
body: <p>Alright, so I'm struggling a little bit with trying to parse my JSON object.
  My aim is to grab the certain JSON key and return it's value. </p>
  
  <p><strong>JSON File</strong></p>
  
  <pre><code>{
    "files": {
      "resources": [
        {
          "name": "filename",
          "hash": "0x001"
        },
        {
          "name": "filename2",
          "hash": "0x002"
        }
      ]
    }
  }
  </code></pre>
  
  <p>I've developed a function which allows me to parse the JSON code above</p>
  
  <p><strong>Function</strong></p>
  
  <pre><code>def parsePatcher():
      url = '{0}/{1}'.format(downloadServer, patcherName)
      patch = urllib2.urlopen(url)
      data = json.loads(patch.read())
      patch.close()
      return data
  </code></pre>
  
  <p>Okay so now I would like to do a foreach statement which prints out each name and hash inside the <code>"resources": []</code> object.</p>
  
  <p><strong>Foreach statement</strong></p>
  
  <pre><code>for name, hash in patcher["files"]["resources"]:
      print name
      print hash
  </code></pre>
  
  <p>But it only prints out "name" and "hash" not "filename" and "0x001"</p>
  
  <p>Am I doing something incorrect here?</p>