diff --git a/source/JsonSerialization/source/JsonSerialization/JsonSerializer.cs b/source/JsonSerialization/source/JsonSerialization/JsonSerializer.cs index aa3fcb22..72845f27 100644 --- a/source/JsonSerialization/source/JsonSerialization/JsonSerializer.cs +++ b/source/JsonSerialization/source/JsonSerialization/JsonSerializer.cs @@ -32,6 +32,13 @@ public JsonSerializer(JsonSerializerOptions? options = null) _options.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb); } + public JsonSerializer() + { + _options = new JsonSerializerOptions(); + _options.Converters.Add(NodaConverters.InstantConverter); + _options.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb); + } + public async ValueTask DeserializeAsync(Stream utf8Json, Type returnType) { ArgumentNullException.ThrowIfNull(utf8Json);