How can I easily separate JSON values that are sent in the same request?
Given that I POST a JSON to my server:
{\"first\":\"A\",\"second\":\"B\"} <
public class Input { private String first; private String second; //getters/setters }
...and then:
public void handleRequest(@RequestBody Input input)
In this case you need Jackson to be available on the CLASSPATH.
public void handleRequest(@RequestBody Map input)