title: decode array of objects in vapor
body: <p>How can i decode the following json-array (which is part of a http-request)</p>
  
  <pre><code>[ 
    { "id": 0, "name": "darth maul" }, 
    { "id": 1, "name": "darth sidious" } 
  ]
  </code></pre>
  
  <p>in swift vapor 3 with the decode function?</p>
  
  <p>vapor code: </p>
  
  <pre><code>struct User: Content {
      var id: Int
      var name: String
  }
  
  router.put("user") { request -&gt; Future&lt;HTTPStatus&gt; in
      return try request.content.decode(User.self).map({ (user) -&gt; (HTTPStatus) in
          // process ...
          return .ok
      })
  }
  </code></pre>