JsonObject Integer 0

来源:互联网 发布:电子数据使用保密协议 编辑:程序博客网 时间:2024/06/06 18:02
JsonConfig jsonConfig = new JsonConfig();jsonConfig.registerDefaultValueProcessor(Integer.class, new DefaultValueProcessor() {@SuppressWarnings("rawtypes")public Object getDefaultValue(Class type) {return null;}});JSONObject data = JSONObject.fromObject(orderDTO, jsonConfig);

0 0