{ “data”: [ { “title”: “”, “img”: “”, “address”: “” }, ] } json to html
Here is what the above code is Doing:
1. We’re importing the Flask class from the flask module.
2. We’re creating a new instance of the Flask class.
3. We’re defining the basic route ‘/’ and its corresponding request handler index().
4. We’re defining the request handler index() which returns the message ‘Hello World!’.
5. We’re running the app on port 5000 in debug mode.