 <p>Okay, I solved my problem and would like to answer my own question. I figured it would be better for the other users here.</p> <p>First, get the file here: <a href="http://www.JSON.org/json_parse.js" rel="nofollow noreferrer">http://www.JSON.org/json_parse.js</a></p> <pre><code>var geodata = json_parse("{{geodata|escapejs}}"); </code></pre> <p>I just used escapejs: <a href="http://docs.djangoproject.com/en/dev/ref/templates/builtins/#escapejs" rel="nofollow noreferrer">http://docs.djangoproject.com/en/dev/ref/templates/builtins/#escapejs</a></p> <p>EDIT: Thanks to Ignacio Vazquez-Abrams. It was him that helped me in #python Freenode. Should have credited him when I made this post. I didn't know he was in Stackoverflow.</p>