title: JSON output to web from flask backend
body: <p>I have scraped json data from other web and want to out put to web, but in the backend of flask, it only return a list, just like: [{'aa':'bb', 'cc':'dd'}]. How do I turn it to be json format so js script on html able to get these json data from backend?</p>
  <p>app.py:</p>
  <pre><code>url1 = requests.get('https://xxxxxxx/getJSON.aspx?jsontype=xxxx.aspx')
  json_data = json.loads(url1.content.decode())
  json_data = json.dumps(json_data)
  json_data = json.loads(json_data)
  return render_template('index.html', json_data=json_data)
  </code></pre>
  <p>html script:</p>
  <pre><code>&lt;script&gt;
  const json_org = JSON.parse({{ json_data }});
      const json_data = json_org
      ;
  
      const output = document.getElementById('output');
  
      output.innerHTML = json_data;
  &lt;/script&gt;
  </code></pre>
  <p>Error:</p>
  <pre><code>Uncaught SyntaxError: Unexpected token '&amp;'
  
  const json_org = JSON.parse([{&amp;#56;name&amp;#56;: &amp;#56;Current&amp;#56;},...}])
  </code></pre>