import com.alibaba.fastjson.JSONObject; JSONObject.toJSONString("java实体", SerializerFeature.WriteMapNullValue)