title: Django HttpResponse strips JSON of double escapes breaks jQuery
body: <p>I've got an interesting problem with JSON and Django.  I think I've narrowed it down to this problem.  The problem is that I have a JSON object something like this:</p>
  
  <pre><code>{"embed": "&lt;iframe width='640' height='360' src='http://www.youtube.com/embed/Sw5Gk1L4LQE?wmode=opaque' frameborder='0' allowfullscreen&gt;&lt;/iframe&gt;"}
  </code></pre>
  
  <p>In PDB if I print out this as a simplejson.dumps I get this (notice the double quotes):</p>
  
  <pre><code>{"embed": "&lt;iframe width=\\"640\\" height=\\"360\\" src=\\"http://www.youtube.com/embed/Sw5Gk1L4LQE?wmode=opaque\\" frameborder=\\"0\\" allowfullscreen&gt;&lt;/iframe&gt;"}
  </code></pre>
  
  <p>The actual HttpResponse object has removed one slash from every set of double escapes like this.  </p>
  
  <pre><code>return HttpResponse(simplejson.dumps(result), 'application/json'
  
  {"embed": "&lt;iframe width=\"640\" height=\"360\" src=\"http://www.youtube.com/embed/Sw5Gk1L4LQE?wmode=opaque\" frameborder=\"0\" allowfullscreen&gt;&lt;/iframe&gt;"}
  </code></pre>
  
  <p>On the client I am using jQuery's parseJSON and I am having problems with the one that has single escaped characters (3rd one) as it doesn't see them as escaped.  But it is actual valid JSON where as the 2nd one works when I try parseJSON on it directly in the console but it is not in fact valid JSON (according to JSONLint.com).</p>
  
  <p>Any ideas of what I can do to get this JSON object from Django to the client and have the embed code intact?  I'm hoping that is a small oversite on my part.</p>