title: How to parse json values from API response
body: <p>I am trying to parse json response from an API.</p>
  
  <pre><code>response = requests.post('https://analysis.lastline.com/analysis/get_completed', files=files)
  
  my = response.json()
  print my
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>{u'data': {u'tasks': [], u'more_results_available': 0, u'after': u'2018-03-18 22:00:20', u'before': u'2018-03-18 17:00:22'}, u'success': 1}
  </code></pre>
  
  <p>Here <code>my</code> is a dictionary. Now I want to get values against the keys.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>print my['tasks']
  </code></pre>
  
  <p>It gives me <code>KeyError</code>.</p>