diff options
author | crupest <crupest@outlook.com> | 2022-03-09 16:49:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-09 16:49:02 +0800 |
commit | aef73578b567f37cbe24991caa5fde536e96c378 (patch) | |
tree | f29895cd4597717d716476ebb0f6b8de3d921458 /BackEnd/Timeline/Startup.cs | |
parent | 331c238b337d9d8f7b4e051712a95f45548debf5 (diff) | |
download | timeline-aef73578b567f37cbe24991caa5fde536e96c378.tar.gz timeline-aef73578b567f37cbe24991caa5fde536e96c378.tar.bz2 timeline-aef73578b567f37cbe24991caa5fde536e96c378.zip |
Migrate to .NET Core 6.0!
Diffstat (limited to 'BackEnd/Timeline/Startup.cs')
-rw-r--r-- | BackEnd/Timeline/Startup.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Startup.cs b/BackEnd/Timeline/Startup.cs index 26ffb4b1..295cad20 100644 --- a/BackEnd/Timeline/Startup.cs +++ b/BackEnd/Timeline/Startup.cs @@ -77,7 +77,7 @@ namespace Timeline })
.AddJsonOptions(options =>
{
- options.JsonSerializerOptions.IgnoreNullValues = true;
+ options.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
options.JsonSerializerOptions.Converters.Add(new JsonDateTimeConverter());
})
|