博主首页

JSON.toJSONString保留null属性

  String s = JSON.toJSONString(vo, new SerializeFilter[]{}, SerializerFeature.WriteMapNullValue);

 

posted @ 2022-04-07 22:24  笑~笑  阅读(472)  评论(0)    收藏  举报