diff --git a/source/JsonSerialization/documents/release-notes.md b/source/JsonSerialization/documents/release-notes.md index 623f4c638..862cd6ec5 100644 --- a/source/JsonSerialization/documents/release-notes.md +++ b/source/JsonSerialization/documents/release-notes.md @@ -1,5 +1,10 @@ # JsonSerialization Release Notes +## Version 2.2.13 + +- Bumped various NuGet packages to the latest versions. +- No functional changes. + ## Version 2.2.12 - Bump System.Text.Json diff --git a/source/JsonSerialization/source/JsonSerialization.Tests/JsonSerialization.Tests.csproj b/source/JsonSerialization/source/JsonSerialization.Tests/JsonSerialization.Tests.csproj index 406b25f47..37465e317 100644 --- a/source/JsonSerialization/source/JsonSerialization.Tests/JsonSerialization.Tests.csproj +++ b/source/JsonSerialization/source/JsonSerialization.Tests/JsonSerialization.Tests.csproj @@ -21,16 +21,16 @@ limitations under the License. - - - - - - + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/source/JsonSerialization/source/JsonSerialization/JsonSerialization.csproj b/source/JsonSerialization/source/JsonSerialization/JsonSerialization.csproj index bce23b27b..c19461e33 100644 --- a/source/JsonSerialization/source/JsonSerialization/JsonSerialization.csproj +++ b/source/JsonSerialization/source/JsonSerialization/JsonSerialization.csproj @@ -29,7 +29,7 @@ limitations under the License. Energinet.DataHub.Core.JsonSerialization - 2.2.12$(VersionSuffix) + 2.2.13$(VersionSuffix) JsonSerialization library Energinet-DataHub Energinet-DataHub @@ -70,8 +70,8 @@ limitations under the License. - - + + diff --git a/source/JsonSerialization/source/JsonSerialization/JsonSerializer.cs b/source/JsonSerialization/source/JsonSerialization/JsonSerializer.cs index aa3fcb223..72845f27d 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);