title: How to read JSON request body using Dropwizard
body: <p>I've been writing simple dropwizard application, and everything worked fine, untill I had to change request type. As I previously got my arguments from Header, now I have to get them from the body of a JSON request. And the saddest part is - there is no complete documentation for dropwizard or any article, that would help me. Here's my code:</p>
  
  <pre><code>@Path("/actors")
  @Produces("application/json")
  public class ActorResource {
      private final ActorDAO dao;
  
      public ActorResource(ActorDAO dao) {
          this.dao = dao;
      }
  
      @POST
      @UnitOfWork
      public Saying postActor(@HeaderParam("actorName") String name,@HeaderParam("actorBirthDate") String birthDate) {
          Actor actor = dao.create(new Actor(name,birthDate));
          return new Saying("Added : " + actor.toString());
      }
  </code></pre>
  
  <p>Does anyone have a solution?</p>