Skip to content

Commit

Permalink
Update DictionaryStringObjectJsonConverter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
abatishchev authored Jun 17, 2022
1 parent d6a00b1 commit bfd3662
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public override Dictionary<string, object> Read(ref Utf8JsonReader reader, Type
throw new JsonException("Failed to get property name");

reader.Read();

dic.Add(propertyName, ExtractValue(ref reader, options));
}

Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit bfd3662

Please sign in to comment.