title: How to pass an array in Django to a template and use it with JavaScript
body: <p>I want to pass an Array to a template and afterwards use it via JavaScript.</p>
  
  <p>In my <em>views.py</em> I have:</p>
  
  <pre><code>arry1 = ['Str',500,20]
  return render_to_response('test.html', {'array1': arry1})
  </code></pre>
  
  <p>And in my template:</p>
  
  <pre><code>var array1 = {{ array1 }};
  </code></pre>
  
  <p>but when I visit the website it outputs:</p>
  
  <pre><code>var array1 = [&amp;#39;Str&amp;#39;,500,20];
  </code></pre>
  
  <p>What do I have to change?</p>