title: Pass array of objects from route to route
body: <p>I'm using Node.js and Express.js and I tried to pass an array of objects from route to other route.
  I tried to pass through QueryString, but the <code>typeof</code> says that it is an object and it doesn't work properly.
  I should either pass it to <code>/contacts</code> in another way somehow, or convert the result of the QueryString to an array of object and use it.</p>
  
  <p>Here is what I tried to do:</p>
  
  <pre><code>app.get('/names', function(req, res) {
      var arr = new Array();
      arr.push({name: 'John'});
      arr.push({name: 'Dani'});
  
  res.redirect('/contacts?arr=' + arr);
  })
  
  app.get('/contacts', function(req, res) {
      var arr = req.query.arr;
      console.log(arr[0].name);
  })
  </code></pre>
  
  <p>Hope you can help, 
  Thank you.</p>