From 062f30dfacea15ee60417981ebd32045ce391b7b Mon Sep 17 00:00:00 2001 From: Bastian Eicher Date: Sun, 1 Oct 2023 11:56:41 +0200 Subject: [PATCH] Made SystemTextJsonSerializer treat property names as case-insensitive --- src/TypedRest/Serializers/SystemTextJsonSerializer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TypedRest/Serializers/SystemTextJsonSerializer.cs b/src/TypedRest/Serializers/SystemTextJsonSerializer.cs index 1719607d..4a4ef074 100644 --- a/src/TypedRest/Serializers/SystemTextJsonSerializer.cs +++ b/src/TypedRest/Serializers/SystemTextJsonSerializer.cs @@ -21,9 +21,8 @@ public SystemTextJsonSerializer() /// /// Serializer options. /// - public JsonSerializerOptions Options { get; } = new() + public JsonSerializerOptions Options { get; } = new(JsonSerializerDefaults.Web) { - PropertyNamingPolicy = JsonNamingPolicy.CamelCase, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull };