title: JAX-RS handle the exception before the automatic POJO mapping
body: <p>I have this function that works on the POST request and it works only if it recive a JSON in the data field of the HTTP packet.
  Then automatically it map every single object into JSON and put it into the array <strong>Persona[] lista</strong>.But if there is a field that dosen't exist into the POJO Persona it gives me an error(Like "500 Internal Server Error"), but i can't handle it in code by using try catch. How can I handle it?</p>
  
  <pre><code>@POST
  @Path("/post")
  @Consumes(MediaType.APPLICATION_JSON)
  @Produces (MediaType.APPLICATION_JSON)
  public ResponseClass createPersonaInJSON(Persona[] lista)
  {
      //...
  }
  </code></pre>