title: JSON loads returning string
body: <p>I have the following code:</p>
  
  <pre><code>url = 'https://finance.yahoo.com/quote/SPY'
  result = requests.get(url)
  
  c = result.content
  html = BeautifulSoup(c, 'html.parser')
  scripts = html.find_all('script')
  
  sl =[]
  for s in scripts:
  
       sl.append(s)
  
  s = (sl[-3])
  s = s.contents
  s = str(s)
  s = s[119:-16]
  s = json.dumps(s)
  json_data = json.loads(s)
  </code></pre>
  
  <p>Once I check the data type for json_data I get a string. I am assuming that there are potentially some text encoding errors in the json data and it cannot properly be recognized as a json object. </p>
  
  <p>However when I try dumping the data into a file and entering it into an online json parser, the parser can read the json data properly and recognize keys and values.</p>
  
  <p>How can I fix this so that I can properly access the data within the json object?</p>