{% for key, value in json.items %} {{value|json_script:key}} {% endfor %}