title: Map JSON array of objects to @RequestBody List<T> using jackson
body: <p>I'm having issues using Jackson to map a Javascript posted JSON array of hashes (Tag).</p>
  
  <p><br>
  Here is the data received by the controller @RequestBody (It is send with correct json requestheader):</p>
  
  <pre><code>[{name=tag1}, {name=tag2}, {name=tag3}]
  </code></pre>
  
  <p><br>
  Here is the controller:</p>
  
  <pre><code>@RequestMapping(value = "purchases/{purchaseId}/tags", method = RequestMethod.POST, params = "manyTags")
  @ResponseStatus(HttpStatus.CREATED)
  public void createAll(@PathVariable("purchaseId") final Long purchaseId, @RequestBody final List&lt;Tag&gt; entities)
  {
          Purchase purchase = purchaseService.getById(purchaseId);
  
          Set&lt;Tag&gt; tags = purchase.getTags();
          purchaseService.updatePurchase(purchase);
      }
  </code></pre>
  
  <p>When I debug and view the 'entities' value it shows as an ArrayList of generic objects, not as a list of objects of type 'Tag' as I would expect.<br><br></p>
  
  <p>How can I get jackson to map a passed array of objects to a list of obejcts of type 'Tag'?</p>
  
  <p>Thanks</p>