title: How can I convert Python dictionary to JavaScript hash table?
body: <p>I have passed to template regular Python dictionary and I need to inside   </p>
  
  <p><code>$(document).ready(function() {.. }</code></p>
  
  <p>to convert that Python dictionary to JavaScript dictionary. I tried  like </p>
  
  <pre><code>var js_dict={{parameters}};
  </code></pre>
  
  <p>but I got errors  ( <strong>&#39;</strong> instead of <strong>'</strong> and all strings start with <strong>u'</strong> ).
  How can I convert Python dictionary to JavaScript hash table ?</p>