Am using the latest version of Spring Boot to read in a sample JSON via Restful Web Service...
Here\'s my pom.xml:
To add on to Andrea's solution, if you are passing an array of JSONs for instance
[
{"name":"value"},
{"name":"value2"}
]
Then you will need to set up the Spring Boot Controller like so:
@RequestMapping(
value = "/process",
method = RequestMethod.POST)
public void process(@RequestBody Map[] payload)
throws Exception {
System.out.println(payload);
}