I tried:
list1 = [{\"username\": \"abhi\", \"pass\": 2087}] return render_template(\"file_output.html\", list1=list1)
In the template:
{% for i in yourlist %} {% for k,v in i.items() %} {# do what you want here #} {% endfor %} {% endfor %}