title: Django - How to read JSON with angularJS?
body: <p>I'm using AngularJS post to get JSON from a Django server: 
  all goes well but when I get the response the JSON is not a "pure" JSON : </p>
  
  <p>Django code: </p>
  
  <pre><code>def get_sim_list():
    t_sim = RD_sim_list.objects.all()
    t_list_sim = {}
    for sim in t_sim :
      t_list_sim['sim_id'] = sim.sim_id
      t_list_sim['sim_iccid'] = sim.sim_iccid
    return JsonResponse(t_list_sim, safe=False)
  </code></pre>
  
  <p>AngularJS code :</p>
  
  <pre><code>$http.post("./LoadJSON/", {mode:"1" ,submode:"1"})
                      .then(function(response) 
                          { 
                          var json_data = response.data;
                          for(var i=0;i &lt; json_data.length ;i++)
                              {
                              t_list.push({
                                  pk:json_data[i].sim_id,
                                  sim_iccid:json_data[i].sim_iccid});
                              }
                           })
  </code></pre>
  
  <p>This code works, but when I retreive data I get this result:</p>
  
  <pre><code>Content-Type: application/json
  
  {sim_id: "1", sim_iccid: "123456"}
  </code></pre>
  
  <p>Ofc I can remove the "Content-Type etc", but how to tell the server not print it?</p>
  
  <p>plus: how can I parse a "non-pure" JSON data? </p>
  
  <p>Thank You!</p>