解决方法:添加一个参数 SerializerFeature.WriteMapNullValue
JSONObject.toJSONString(jsonStr,SerializerFeature.WriteMapNullValue);