When returning vo as JSON, how to go back except the null price?
@RequestMapping("/rbtInfo.do")
public RobotVO rbtInfo(@RequestParam String rbtId){
String rbtPower = "ON";
robot.setRbtPower(rbtPower);
return robot;
}
Above is my controller.
And the return value is as follows.
{
"rbtId": null,
"rbtPower": "ON",
"rtspAddr": null,
"ifrRtspAddr": null,
"stationPosition": null,
}
In this example, I want to go back simplest power for which the cost exists, but not the relaxation.
0 Replies