From b428fea8980ca1aedb673c79933abe6eb766fcfe Mon Sep 17 00:00:00 2001 From: Alexander Batishchev Date: Fri, 17 Jun 2022 16:53:03 -0700 Subject: [PATCH] Update DictionaryStringObjectJsonConverter.cs --- .../Converters/DictionaryStringObjectJsonConverter.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/JWT/Serializers/Converters/DictionaryStringObjectJsonConverter.cs b/src/JWT/Serializers/Converters/DictionaryStringObjectJsonConverter.cs index d2db6b4cd..dcd06de28 100644 --- a/src/JWT/Serializers/Converters/DictionaryStringObjectJsonConverter.cs +++ b/src/JWT/Serializers/Converters/DictionaryStringObjectJsonConverter.cs @@ -30,7 +30,6 @@ public override Dictionary Read(ref Utf8JsonReader reader, Type throw new JsonException("Failed to get property name"); reader.Read(); - dic.Add(propertyName, ExtractValue(ref reader, options)); } @@ -124,10 +123,8 @@ private static void HandleValue(Utf8JsonWriter writer, string key, object object } } - private static void HandleValue(Utf8JsonWriter writer, object value) - { + private static void HandleValue(Utf8JsonWriter writer, object value) => HandleValue(writer, null, value); - } private object ExtractValue(ref Utf8JsonReader reader, JsonSerializerOptions options) {