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) {