Parse request parameters without writing wrapper class
问题 How to handle json requests and parse the request parameters in dropWizard? @POST @Path("/test") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public String test(@Context final HttpServletRequest request) { JSONObject data=new JSONObject(); System.out.println(request); System.out.println(request.getParameterMap()); System.out.println(">>>>>>>>>"); return "{\"status\":\"ok\"}"; } I wrote the above code and tried the following request. curl -XPOST -H "Content-Type: