Hi I tried googling around but cannot find solution that I want to achieve.
Example to map json to java object we do
@POST
@Consumes(application/j
If you are using the same configuration as web.xml setup gists for Jersey1 and Jackson2, then you may do as below. This is a possible alternative than using JSONObject
@POST
@Path("/sub_path2")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Map saveMethod( Map params ) throws IOException {
// Processing steps
return params;
}