title: Pretty Display JSON data from with Flask
body: <p>I've got a response object as a result of a <code>GET</code> request and I've converted this to <code>JSON</code> with <code>jsonify()</code>. When I pass this to a template, all I get is a JSON object like: <code>&lt;Response 1366 bytes [200 OK]&gt;</code> this. </p>
  
  <pre><code>#request.py
  ...
  response = requests.get('http://www.example.com')
  response_json = jsonify(all=response.text)
  
  return render_template(
      'results.html',
      form=ReqForm(request.form),
      response=response_json,
      date=datetime.datetime.now()
  )
  </code></pre>
  
  <p>and the template..</p>
  
  <pre><code>#results.html
  ...
  &lt;div class="results"&gt;
      {{ response }} # --&gt; gives &lt;Response 1366 bytes [200 OK]&gt;
  &lt;/div&gt;
  ...
  </code></pre>
  
  <p>How can I pretty display this JSON in a template?</p>