title: Use JSON from flask with jinja in javascript
body: <p>I have the following issue:
  I get from my mongodb an dict document, I parse it to json and pass it trough with jinja to my html page. I try to use this json document with the renderjson package. I have tried some solutions with quote the jinja object but it's working not properly.</p>
  
  <pre><code>&lt;div id="test"&gt;&lt;/div&gt;
  &lt;script type="text/javascript" src="static/renderjson.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
      var str = "{{meta[1][0]}}" // meta is my list, the json object is the first element from flask
      document.getElementById("test").appendChild(
          renderjson(JSON.stringify(str))
      );
  &lt;/script&gt;
  </code></pre>
  
  <p>The json is valid.
  <a href="https://i.stack.imgur.com/6Q56d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Q56d.png" alt="enter image description here"></a></p>
  
  <p>I am trying to use the renderjson package. <a href="https://github.com/caldwell/renderjson" rel="nofollow noreferrer">https://github.com/caldwell/renderjson</a>.
  If I use instead stringfy the parse method, nothing is displayed.</p>
  
  <p>How can I pass the json to the frontend properly?</p>