title: JSON on Django template
body: <p>While making a website, I ran into a problem. I am sending a JSON data from <em>views.py</em> to my template to print each attribute value from JSON data, but the data showing is empty. </p>
  
  <pre><code>data = {
      "philip": {"age": 20, "salary": 10000},
      "jerry": {"age": 27, "salary": 30000}
  }    
  
  names = ["philip", "jerry"]
  
  return render(request, 'index.html', {'data': data, 'names': names})
  </code></pre>
  
  <p>I'm storing the names from JSON data in a list and sending both data and names to template.</p>
  
  <pre><code>&lt;div class="col-sm-3"&gt;
      {% for name in names %}
          {{ data.name }}
      {% endfor %}
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to get values associated with each name.</p>