<div dir="ltr"><div>Hi All,</div><div>            Is there is any good tutorial/handson which will return the data in Json format with examples like handlers which will fetch the real time data.</div><div> </div><div>I went through mentioned below tutorial </div><div><a href="https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world">https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world</a><span></span></div><div>and currently I hardcoded the the Json data and returned to browser</div><div>now I need to return some real time data from microblog/virtualenv-15.1.0/app/views.py</div><div> </div><div>instead of hardcoded. </div><div> </div><div>from flask import Flask,jsonify,json<br>from app import app<br>@app.route("/getEmployeeList")<br>def getEmployeeList():</div><div>    try:</div><div>        # Initialize a employee list<br>        employeeList = []<br>        # create a instances for filling up employee list<br>        for i in range(0,2):<br>            empDict = {<br>                'firstName': 'Roy',<br>                'lastName': 'Augustine'}<br>        employeeList.append(empDict)</div><div>        # convert to json data<br>        jsonStr = json.dumps(employeeList)</div><div>    except Exception ,e:<br>        print str(e)</div><div>    return jsonify(Employees=jsonStr)<br></div><p><span></span> </p><div><span>and can you please help me for interface as well to lower backed layer.</span></div><div> </div><div>Thanks</div></div>