title: Python Beautiful Soup how to JSON decode to `dict`?
body: <p>I'm new to BeautifulSoup in Python and I'm trying to extract <code>dict</code> from BeautifulSoup.</p>
  
  <p>I've used BeautifulSoup to extract JSON and got <code>beautifulsoup.beautifulsoup</code> variable <code>soup</code>.</p>
  
  <p>I'm trying to get values out of <code>soup</code>, but when I do <code>result = soup.findAll("bill")</code> I get an empty list <code>[]</code>. How can I extract soup to get <code>dict</code> result of:</p>
  
  <pre><code>{u'congress': 113,
   u'number': 325,
   u'title': u'A bill to ensure the complete and timely payment of the obligations of the United States Government until May 19, 2013, and for other purposes.',
   u'type': u'hr'}
  
  
  print type(soup)
  print soup 
  </code></pre>
  
  <p>=> result below</p>
  
  <pre><code>BeautifulSoup.BeautifulSoup
  
  {
    "bill": {
      "congress": 113, 
      "number": 325, 
      "title": "A bill to ensure the complete and timely payment of the obligations of the United States Government until May 19, 2013, and for other purposes.", 
      "type": "hr"
    }, 
    "category": "passage", 
    "chamber": "s"
  }
  </code></pre>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Here is how I got <code>soup</code>:</p>
  
  <pre><code>from BeautifulSoup import BeautifulSoup
  
  import urllib2 
  url = urllib2.urlopen("https://www.govtrack.us/data/congress/113/votes/2013/s11/data.json")
  content = url.read()
  soup = BeautifulSoup(content)
  </code></pre>