Class EmptyDateStringToNullJsonConverter
Converts an empty date string to a null. 343i is returning some ISO8601 dates that we wrap in APIFormattedDate as empty, which in turn breaks System.Text.Json deserialization.
Inheritance
System.Text.Json.Serialization.JsonConverter
EmptyDateStringToNullJsonConverter
Namespace: Den.Dev.Grunt.Converters
Assembly: Den.Dev.Grunt.dll
Syntax
[[System.Runtime.CompilerServices.Nullable(0)]]
[[System.Runtime.CompilerServices.NullableContext(1)]]
public class EmptyDateStringToNullJsonConverter : System.Text.Json.Serialization.JsonConverter<DateTime?>
Constructors
Name | Description |
---|---|
EmptyDateStringToNullJsonConverter() |
Methods
Name | Description |
---|---|
Read(Utf8JsonReader, Type, JsonSerializerOptions) | Read content from the JSON parser. |
Write(Utf8JsonWriter, Nullable<DateTime>, JsonSerializerOptions) | Writes content through a JSON parser. |