title: Accessing an element within a dictionary within in a list
body: <p>The purpose of this code is to send a http get request and I want to take the value of one of the keys from the the result of the request. As an example I want to get the value of &quot;target&quot;, see intended behaviour below:</p>
  <pre><code>request = request.get(url,auth=(user,password))
  
  all_results = request.text
  
  print(all_results)
  &gt;&gt;&gt; {&quot;thing&quot;:[{&quot;thing1&quot;:1,&quot;thing2&quot;:2,&quot;thing3&quot;:3,&quot;thing4&quot;:4,&quot;thing5&quot;:5,&quot;thing6&quot;:{&quot;t1&quot;:0,&quot;t2&quot;:2,&quot;t3&quot;:0,&quot;t4&quot;:0,&quot;t5&quot;:0,},&quot;target&quot;:&quot;I WANT THIS&quot;}],&quot;l&quot;:{&quot;m&quot;:1,&quot;n&quot;:1,&quot;o&quot;:0}}
  
  x = all_results[&quot;thing&quot;][0][&quot;transactions&quot;]
  
  print(x) 
  &gt;&gt;&gt; &quot;I WANT THIS&quot;
  </code></pre>
  <p>But when i print x, I get an error:</p>
  <pre><code>TypeError: string indices must be integers 
  </code></pre>