title: Iterating JSON in a django template
body: <p>I have a json coming from a view in below format in a variable(<code>AllUsers</code>) :</p>
  
  <pre><code>{
    "msg": "data found.",
    "user": [
      {
        "fname": "aaa",
        "lname": "aaa",
        "add": "add1",
        "city": "city1",
      },
      {
        "fname": "aaa2",
        "lname": "aaa2",
        "add": "add2",
        "city": "city2",
      }
    ],
    "data_status": "active",
    "error": false
  }
  </code></pre>
  
  <p>I need to iterate through this JSON in my template and print in below format.So ideally my loop should run 2 times in this case. </p>
  
  <pre><code>name : aaa
  name : aaa2
  </code></pre>
  
  <p>I tried :</p>
  
  <pre><code>{% for myusers in AllUsers %}
         name : {{ user.fname}}
  {% end for%}
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>{%with myusers=AllUsers.user%}
  {% for user in myusers %}
  name : {{ user.fname}}  
  {% endfor %}
  {% endwith %}
  </code></pre>
  
  <p>But both of them are not working as loops are not iterating even once.In one of SO threads i read <em>....You shouldn't "convert it to JSON"....</em> but this is not in my hand...i just get the JSON.</p>
  
  <p><code>Views</code> looks like this :</p>
  
  <pre><code>def somefucn(request):
      data = {
          "msg": "data found.",
          "AllUsers": AllUser                    ## This is where the above JSON resides
          "data_status": "active",
          "error": false
      }
      return TemplateResponse(request, 'path/to/Template.html', data)
  </code></pre>
  
  <p>Where am i going wrong in the iteration? Please help..</p>