title: JSON.parse() in Swig (Node.js)?
body: <p>I'm trying to switch from Jade to Swig (lured by Swig's insane performance) as my Express template engine when I got stuck here — I'm sending an array of serialized JSON from Express into Swig and retrieve the data in Swig using this loop here:</p>
  
  <pre><code>&lt;ul id = "list"&gt;
      {% if items %}
          {% for item in items %}
              {{ JSON.parse( item ).title }}
          {% endfor %}
      {% endif %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>... but I get this:</p>
  
  <pre><code>SyntaxError: Unexpected token )
      at Object.Function (unknown source)
      at createTemplate (/home/vijay/node_modules/swig/index.js:72:14)
      at getTemplate (/home/vijay/node_modules/swig/index.js:109:26)
      at Object.compile (/home/vijay/node_modules/swig/index.js:153:16)
  </code></pre>
  
  <p>If I change <code>JSON.parse( item ).title</code> to <code>JSON.parse( item )</code> above, instead of errors I get this in my view:</p>
  
  <pre><code>function parse() { [native code] }
  </code></pre>
  
  <p>Here's a look at the <code>item</code> JSON object:</p>
  
  <pre><code>item { 
      id     : 2,
      title  : 'City Life ',
      author : 'Timothy J. Lindenburg',
      date   : 1337498792626,
      indent : 0         
  }
  </code></pre>
  
  <p>Simply put, I want to access the individual keys and values of <code>item</code> in Swig but I can't get JSON.parse() to work. Would appreciate it if someone would point me in the right direction (I'm told Swig is based on Django templates so if you've worked with those, this should be easy).</p>