title: req.body can't be read as an array
body: <p>I'm using node.js to receive a post request, the request body has this content after printing it using <code>console.log()</code>:</p>
  
  <pre><code>{ 
    'object 1': 
     { 
       deviceType: 'iPad Retina',
       guid: 'DF1121F9-FE66-4772-BE74-42936F1357FF',
       is_deleted: '0',
       last_modified: '1970-12-19T06:01:17.171',
       name: 'test1',
       projectDescription: '',
       sync_status: '1',
       userName: 'testUser' 
     },
    'object 0': 
     { 
       deviceType: 'iPad Retina',
       guid: '18460A72-2190-4375-9F4F-5324B2FCCE0F',
       is_deleted: '0',
       last_modified: '1970-12-19T06:01:17.171',
       name: 'test2',
       projectDescription: '',
       sync_status: '1',
       userName: 'testUser' 
     } 
  }
  </code></pre>
  
  <p>I'm getting the request using the below node.js code:</p>
  
  <pre><code>var restify = require('restify'),
      mongoose = require('mongoose');
  var connect = require('connect');
  var bodyParser = require('body-parser');
  /*server declaration
  ...
  ...
  */
  server.use(bodyParser.json());
  server.use(bodyParser.urlencoded({ extended: true }));
  
  server.post('/project', function (req, res, next) {
         console.log(req.body);//the output is shown above
         console.log(req.body.length);// --&gt; output is undefined
  
         //2
         body.req.forEach(function (item) {//got an exception 
         console.log(item);
     });
  });
  </code></pre>
  
  <p>The second part of the code which has <code>forEach</code> function gives this exception "<code>[TypeError: Object #&lt;Object&gt; has no method 'forEach']</code>"</p>
  
  <p>Do you know what am I missing?</p>