I want to send from my client-side application/json request with JSON
{ "content" : "My content", "question" : "WHY?" }
Is there some way in Jersey rest for retrieve this JSON on server side my some method like:
@POST
@Path("/myMethod")
@Consumes(MediaType.APPLICATION_JSON)
public void myServerMethod(@FormParam("content") String content, @FormParam("question") String question) {
System.out.println(content+" "+question);
}
Now i can't retrieve values from json's body.
Best regards