title: spring jersey POST serialized bean
body: <p>Is there any way to get <code>POST</code> request body as serialized bean instead of raw <code>json</code> <code>string</code>?
  for example:</p>
  
  <pre><code>    @POST
      @Path(ResourceEndpoints.POST_USER_REGISTER)
      @Produces(MediaType.APPLICATION_JSON)
      public Response register(@RequestBody UserObject user) {
      ...
  </code></pre>
  
  <p>Then I would not have to write json serializer boiler-plate code in each request.</p>
  
  <p>Currently I have to do like this:</p>
  
  <pre><code>    @POST
      @Path(ResourceEndpoints.POST_USER_REGISTER)
      @Produces(MediaType.APPLICATION_JSON)
      public Response register(@RequestBody String userObjectJson) {
          Gson gson = new Gson();
          UserObject userObject = gson.fromJson(userObjectJson, UserObject.class);
  </code></pre>