您好,我目前正在将解决方案从.Net Core 2.2定位为.Net Core 3.0。 .Net Core2.2灵魂具有以下JsonApiSerializerSettings和JsonOutputFormatter设置。
var jsonApiSerializerSettings = new JsonApiSerializerSettings
{
DateTimeZoneHandling = DateTimeZoneHandling.Utc,DateFormatHandling = DateFormatHandling.IsoDateFormat,Formatting = Formatting.Indented,NullValueHandling = NullValueHandling.Ignore
};
var jsonApiOutputFormatter = new JsonOutputFormatter(jsonApiSerializerSettings,ArrayPool<char>.Shared);
jsonApiOutputFormatter.SupportedMediaTypes.Clear();
jsonApiOutputFormatter.SupportedMediaTypes.Add("application/vnd.api+json");
我如何在Core 3.0中完成相同的工作?