title: python can't parse json string
body: <p>I tried to parse json data but it didn't work, json parser return a strong not a dictionary!!
  Here the code:</p>
  
  <pre><code>import urllib2
  from BeautifulSoup import BeautifulSoup
  import json
  html = urllib2.urlopen("http://www.imdb.com//name/nm0425005/mediaviewer/rm244453632?ref_=nmmi_mi_all_sf_49").read()
  soup = BeautifulSoup(html)
  script = soup.find('script', {'id': 'imageJson'})
  json_data = ''.join(map(str, script.contents))
  json_data = json.dumps(json_data.strip(' \t\n\r'))
  data = json.loads(json_data)
  print data['mediaViewerModel']
  </code></pre>