// 将NULL转化为“”,1是需要修改的实体类参数,3是转化后的实体对象 String 2= JSON.toJSONString(1, SerializerFeature.WriteNullStringAsEmpty,SerializerFeature.WriteMapNullValue); 3= JSON.parseObject(2, ElectronicMagazine.class);
// 将NULL转化为“”,1是需要修改的实体类参数,3是转化后的实体对象 String 2= JSON.toJSONString(1, SerializerFeature.WriteNullStringAsEmpty,SerializerFeature.WriteMapNullValue); 3= JSON.parseObject(2, ElectronicMagazine.class);