I have following request mapping:
@RequestMapping(value = "/reCalculated", method = RequestMethod.POST)
public @ResponseBody void reCalculated(JSONObject obj) {
obj.
}
and then i have incoming json
{"params":{"date_a":"2017-05-01","date_b":"2017-05-02"}}
but in java, obj. only gives me options toString() and toJSONString()
meanwhile all the tutorials, and few threads clearly tell me i should be able to do obj.getJSONObject("params") Why is this? how can i access my parameters?
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
is the dependency.