title: Passing Unicode string from Python dict to JSON
body: <p>I have a dict that contains some Unicode strings (among other objects). I'd like to save this dict as a JSON file, and then display the content of this via AJAX.</p>
  
  <p>If <code>final_res</code> is the dict, I usually do this:</p>
  
  <pre><code>json.dumps(final_res, ensure_ascii=True)
  </code></pre>
  
  <p>In the result, I see strings like:</p>
  
  <pre><code>"l\\u00a0m\\u00fcdale"
  </code></pre>
  
  <p>I imagine these are unicode encoded characters. But when I try to display them in Javascript, these get printed with the slashes, instead of the encoded unicode letter.</p>
  
  <p>Is there something I am doing wrong in Javascript for displaying these properly? Or should I do decode these into ASCII in Python, before outputting to JSON?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Based on the discussion in the comments below with @spectra, I realized that <code>json.dumps</code> should not be outputting double slashes. When I parse this in the browser, this prints it as a literal single slash.</p>
  
  <p>I am trying to figure out a way to fix this with the <code>json</code> module, not sure why it's happening.</p>