title: Json Data is not showing in HTML page Python Flask
body: <p>I am a beginner in python . I want to show json data from a python file app.py to a html template.</p>
  
  <p>I tried but it showing only the names of the json .</p>
  
  <p>here is my code</p>
  
  <pre><code>@app.route('/showUserDetail/',methods=['GET','POST'])
  def showUserDetail():
  try:
      userId = request.args.get('id')
      userDetail = db.userDetails.find_one({'_id':ObjectId(userId)})
      print(userDetail) # Working 
      return render_template('editUser.html',userDetails = userDetail)
  </code></pre>
  
  <p>This is My html</p>
  
  <pre><code>{% for x in userDetails %}
  &lt;p&gt;{{x.name}}.&lt;/p&gt;
  {% endfor %}
  </code></pre>
  
  <p>I cant find anything in the HTML page</p>