I've got a bit stuck with trying to figure out how to process nested JSON in JAX-RS @POST method. I'm using JAX-RS 1.1 & Jersey 1.8 RI (Jackson 1.7.1) as provided in Netbeans 7.1.
I'd like to implement something like in the below link, and create a structure of nested HashMaps but am not sure how to correctly access the ObjectMapper for this version of Jersey/Jackson and also what type I should pass in to my POST method to do this. I've been searching through documentation/Google all afternoon but have not been able to find anything.
https://djna.wordpress.com/2010/03/12/json-strings-no-rest-using-the-jackson-parser/
eg
@POST
@Path("/doStuff")
@Consumes(MediaType.APPLICATION_JSON)
public Response doStuff(<???> input) {
....
}
Any assistance appreciated. thanks