Add @RequestBody to convert json to object.