@GET
@Path("/addemployee")
@Produces(MediaType.APPLICATION_JSON)
public void addEmployee(@QueryParam("id") String id, @QueryParam("name") String name,@QueryParam("address") String address,@QueryParam("phone") String phone ) {
    employeeVo.setId(Integer.parseInt(id));
    employeeVo.setName(name);
    employeeVo.setPhone(phone);
    employeeVo.setAddress(address);
    employeeDao.addNewEmployee(employeeVo);     
}
I have this above method which takes parameter from an html form and add this data to database table. I want to do the same but using json Object, So how to pass a Json Object as a parameter? and what dependency should I add to my Pom.xml file. Thanks In advance
 
     
    