How to show Json data to Django template?

Solution for How to show Json data to Django template?
is Given Below:

I store JSON data to TextField :
Data in TextField:


 "WeightTypes":"GRAM","TotalWeight":"6","Customs Charge":"0.0","Subtotal":"12"}]

I receive data in my using
products = json.loads(data)

After that, i am trying to show each item’s in Django templates

{% for p in products %}
    {% for key, value in p.items %}
        {% endfor %}
    {% endfor %} 

But it’s not working!
How can i get each value from this Jason field?

Thank you in advance.

I think you just wrong on parsing the data into template. Basicly you no need to use p.items because it will unpack your original dict items values, meanwhile yo just need to directly call on product loops.

{% for p in products %}
        <td>{{ }}</td>
        <td>{{ p.Name }}</td>
        <td>{{ p.Quantity }} (pcs)</td>
        <td>{{ p.Weight }}</td>
        <td>{{ p.WeightTypes }}</td>
        <td>{{ p.TotalWeight }}</td>
        <td>{{ p.CustomsCharge }}</td>
        <td>{{ p.Subtotal }}</td>
{% endfor %}