JSON on Django template
问题 While making a website, I ran into a problem. I am sending a JSON data from views.py to my template to print each attribute value from JSON data, but the data showing is empty. data = { "philip": {"age": 20, "salary": 10000}, "jerry": {"age": 27, "salary": 30000} } names = ["philip", "jerry"] return render(request, 'index.html', {'data': data, 'names': names}) I'm storing the names from JSON data in a list and sending both data and names to template. <div class="col-sm-3"> {% for name in