title: Python, JSON TypeError
body: <p>I'm using the Trello API and have a common problem to others on Stack Overflow. I tried using the solutions provided, but I get a weird error and can't figure out why.</p>
  <pre><code>cardlist_url = &quot;https://api.trello.com/1/boards/&quot; + board +  &quot;$
  r = requests.get(cardlist_url)
  r = r.text
  j = json.loads(r)
  #Check for when due
  print j['due']
  </code></pre>
  <p>But on printing <code>j['due']</code>, I get:</p>
  <blockquote>
  <p>TypeError: list indices must be integers, not str</p>
  </blockquote>
  <p>Which is seemingly at odds with common sense. Incidentally, I put in some integers and it had no effect whatsoever! (I did save it!)</p>