title: Express Parsing Array from POST
body: <p>Running an Express API, I'm struggling to parse data including an array of objects correctly when hitting a POST route.</p>
  
  <p>A simplified version of the code - </p>
  
  <pre><code>var express = require('express');
  var app = express();
  var router = express.Router();
  var bodyParser = require('body-parser');
  var parseUrlencoded = bodyParser.urlencoded({ extended: false });
  
  router.post('/', parseUrlencoded, function(req, res) {
      console.log(req.body);
  });
  </code></pre>
  
  <p>Hitting the API with the following</p>
  
  <pre><code>{ name: "Object name", 
    arrayOfObjects: [
        { name: "Sub Object Name", subType: "Sub Object Type" }, 
        { name: "Sub Object Name 2", subType: "Sub Object Type 2" }
    ] 
  }
  </code></pre>
  
  <p>Logs out</p>
  
  <pre><code>{ name: "Object name", 
    'arrayOfObjects[0][name]': "Sub Object Name",
    'arrayOfObjects[0][subType]': "Sub Object Type",
    'arrayOfObjects[1][name]': "Sub Object Name 2",
    'arrayOfObjects[1][subType]': "Sub Object Name",
  }
  </code></pre>
  
  <p>I would like to receive this as an array, which is the case when using a PUT request.</p>
  
  <p>I'm sure this possible using a configuration of bodyParser or similar, but I'm struggling to find a good solution.</p>