title: Assigning json to variable
body: <p>Ok, some explanation. Even though I don't think it has anything to do with the problem itself. I have a small django project that maps some data using leaflet. On a mouseover some  ajax functionality is added, using the <code>dajax</code>(which is a "lightweight library to implement AJAX inside django projects") framework. The call itself looks like this:</p>
  
  <pre><code>dajax.add_data(simplejson.dumps(series), 'my_test_flot')
  </code></pre>
  
  <p>My js function receives json data which looks like this (using <code>alert</code>)</p>
  
  <pre><code>[{"color": "#dddd00", 
  "data": [[-0.5, -20.5]], 
  "label": "Tweede Zandlaag"}]
  </code></pre>
  
  <p>The object has more data to it but the problem is not with the object. When I copy/paste the data directly into the function <code>var series = []</code> the behaviour is as aspected. As aspected means, the graph I'm drawing with <code>flot</code> is actually being drawn. Otherwise the graph remains empty.  </p>
  
  <pre><code>function my_test_flot(dat) {
      function MyFormatter(v, xaxis) {
          return " ";
      }
      $(function () {
          alert(dat)
          var series = dat; // here lies the problem, but why?
          ...
  </code></pre>
  
  <p>Can anyone help? </p>