title: Django- Json data in template
body: <p>I am accessing an API and get JSON data. I can see that JSON is generated. However I am not able to show it in template.</p>
  
  <p>Below is the sample Json data.</p>
  
  <pre><code>{  
     "response_code":1,
     "response":{  
        "a":"01/07/2017",
        "b":"12",
        "c":"23",
        "d":"34",
        "e":"45",
        "f":"56",
  
     },
     "error_code":null,
     "error_message":null
  }
  </code></pre>
  
  <p>I passed this data in view to template as <code>dataset</code>.
  View as asked in comment.</p>
  
  <pre><code>    response = requests.request("GET", url, data=payload, headers=headers, params=querystring)  
  json_string = json.dumps(response)
  return render(request,'searchhome.html',{'dataset':json_string})
  </code></pre>
  
  <p>What I tried in template.</p>
  
  <pre><code>{% for key, value in dataset.items %}
  {{key}}: {{value}}
  {% endfor %}
  </code></pre>
  
  <p>Another try</p>
  
  <pre><code>{% for d in dataset %}
  {% for key, value in d.response.items %}
  {{key}} {{value}}
  {% endfor %}
  {% endfor %}
  </code></pre>
  
  <p>Template is not showing any error or any response. What I am doing wrong here?</p>