把一个对象先转化为JSON格式
Json json = new Json();
String jsonInfo = JSON.toJSONString(deviceDto);
json.setObj(JSON.parseObject(jsonInfo));转化为对象。
String jsonInfo = JSON.toJSONString(deviceDto);
json.setObj(JSON.parseObject(jsonInfo));转化为对象。
把对象进行传到前端:
JSON.toJSONString(json)