How to read JSON request body in Jersey
I have a requirement, where in i need to read JSON request that is coming in as part of the request and also convert it to POJO at the same time. I was able to convert it to POJO object. But I was not able to get the request body (payload) of the request. For Ex: Rest Resource will be as follows @Path("/portal") public class WebContentRestResource { @POST @Path("/authenticate") @Consumes(MediaType.APPLICATION_JSON) public Response doLogin(UserVO userVO) { // DO login // Return resposne return "DONE"; } } POJO as @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class UserVO {