title: How do I convert python JSON into a html table in Flask server?
body: <p>I have installed flask in raspberry pi.</p>
  
  <pre><code>from flask import Flask
  from flask import jsonify
  import os
  import cv2
  import numpy as np
  app = Flask(__name__)
  
  @app.route('/')
  def index():
      return 'Hello world'
  
  @app.route('/detect')
  def detect():
      labels = os.popen('python3 detect.py').read()
      return jsonify(labels)
  
  if __name__ == '__main__':
      app.run(debug=True, port=8000, host='0.0.0.0')
  </code></pre>
  
  <p>in the detect() method i have converted the labels into JSON. It is of the format {"John":"Yes","David":"No"} format. But I need to convert this JSON into a HTML table and render it as a html template.
  so that it looks like </p>
  
  <pre><code>Name  Status
  John  Yes
  David No
  </code></pre>
  
  <p>How do I achieve it?? 
  I have seen lot of questions in StackOverflow but I don't get any correct solution for my question. </p>