title: How to parse, and render, json use in Flask template
body: <p>Here's my Flask app code:</p>
  
  <pre><code>from flask import render_template, jsonify
  import requests
  from app.test_blueprint import app
  
  
  @app.route('/')
  def index():
  
      url = 'http://api.address'
      response = requests.get(url)
      data = response.json()
  
      return render_template('index.html', data=data)
  
  
      if __name__ == '__main__':
          app.run()
  </code></pre>
  
  <p>And a snippet from the <code>index.html</code> template:</p>
  
  <pre><code> &lt;div class="title"&gt;
   {% for item in data %}
       &lt;span&gt;{{ item.title }}&lt;/span&gt;
   {% endfor %}
   &lt;/div&gt;
  </code></pre>
  
  <p>parsing the url address to send an HTTP GET request which has been sprayed on the screen , and then it will give . In JSON to create customized to show to object. I got the JSON data output by inserting a data item in the template , but it does not appear on the screen. Is any part of this wrong?</p>