title: How to parse JSON response that includes multiple objects
body: <p>A REST API that I am calling returns multiple objects in a single JSON response. Using Python 2.7 I am trying to parse this response so that I can print some of these values for ALL objects in the response.</p>
  
  <p>What would be the best way to extract this data from <strong>all</strong> objects given in the response from the REST API?</p>
  
  <p>I want a list that includes the "key", "name", and "emailAddress" for each object in the JSON response.</p>
  
  <p>This is how I did it for single objects in a response:</p>
  
  <pre><code>&gt;&gt;&gt;&gt; a = json.loads(response)
  &gt;&gt;&gt; print a.get(key), ";", a.get('name'), ";", a.get('emailAddress')
  keyOne ; nameOne ; mailOne
  </code></pre>
  
  <p>For multiple objects I would want each object to have the key;name;email on displayed on a new line.</p>
  
  <p>The response data is structured as followed:</p>
  
  <pre><code>[
    {
      "self": "https://example1.com",
      "key": "keyOne",
      "name": "nameOne",
      "emailAddress": "mailOne",
      "avatarUrls": {
        "48x48": "https://test.com/secure/useravatar?avatarId=1",
        "24x24": "https://test.com/secure/useravatar?size=small&amp;avatarId=1",
        "16x16": "https://test.com/secure/useravatar?size=xsmall&amp;avatarId=1",
        "32x32": "https://test.com/secure/useravatar?size=medium&amp;avatarId=1"
      },
      "displayName": "displayNameOne",
      "active": true,
      "timeZone": "Europe",
      "locale": "en_UK"
    },
    {
      "self": "https://example2.com",
      "key": "keyTwo",
      "name": "nameTwo",
      "emailAddress": "mailTwo",
      "avatarUrls": {
        "48x48": "https://test.com/secure/useravatar?avatarId=2",
        "24x24": "https://test.com/secure/useravatar?size=small&amp;avatarId=2",
        "16x16": "https://test.com/secure/useravatar?size=xsmall&amp;avatarId=2",
        "32x32": "https://test.com/secure/useravatar?size=medium&amp;avatarId=2"
      },
      "displayName": "displayNameTwo",
      "active": false,
      "timeZone": "Europe",
      "locale": "en_US"
    }
  ]
  </code></pre>