I want json response from `xml_parser` view.I am getting only one dict instead of multiple dict .. seems my for loop logic is wrong .. can you correct that for me..?

```
def xml_parser(request):
    for child in root.findall('GetAll'):
        for geoloc in child.iter('loc'):
            geoinfo = geoloc.attrib
            pprint.pprint(geoinfo)
    jsoninfo = json.dumps(geoinfo, ensure_ascii=False)
    return HttpResponse(jsoninfo, content_type='application/json')

```

Okay now pprint shows and this is the exact output i want 

```
{'lat': '36.15900011', 'lon': '-115.17205183'}
{'lat': '36.15899561', 'lon': '-115.17276155'}

```

but the url `http://127.0.0.1:8000/parser` shows `{"lat": "36.15899561", "lon": "-115.17276155"}` And may i know why?