title: Dealing with JSON in Python
body: <p>I have a JSON response as such:</p>
  
  <pre><code>{
    "SiteInfo": [
      {
        "'LOB03023D'": {
          "errorText": "Success",
          "status": "1",
          "parameterList": {
            "aloha_mask": "255.255.255.0",
            "beta_mask": "255.255.255.224",
            "omega_mask": "0",
          }
        }
      }
    ],
    "Error Text": null,
    "API RequestID": "11",
    "Status": 1,
    "Username": "NMS@internal.com",
    "TransactionID": "1467626",
    "Error Code": null,
    "GetSiteInfoTimeStamp": "2017-02-23 21:32:42"
  }
  </code></pre>
  
  <p>In my script after loading the response as such: </p>
  
  <pre><code>ubdataset = json.loads(response.text)
  </code></pre>
  
  <p>How can I access only the 'aloha_mask' field?</p>
  
  <p>The following did not work for me:</p>
  
  <pre><code>aloha = ubdataset['SiteInfo']['LOB03023D']['parameterList'][0]['aloha_mask']
  </code></pre>
  
  <p>Thanks everyone in advance!</p>