diff --git a/src/HotChocolate/AspNetCore/src/Transport.Abstractions/Serialization/Utf8JsonWriterHelper.cs b/src/HotChocolate/AspNetCore/src/Transport.Abstractions/Serialization/Utf8JsonWriterHelper.cs index 1b32247cf6f..ef7035838c2 100644 --- a/src/HotChocolate/AspNetCore/src/Transport.Abstractions/Serialization/Utf8JsonWriterHelper.cs +++ b/src/HotChocolate/AspNetCore/src/Transport.Abstractions/Serialization/Utf8JsonWriterHelper.cs @@ -195,14 +195,7 @@ private static void WriteDictionary( foreach (var item in dict) { writer.WritePropertyName(item.Key); - if (item.Value is null) - { - writer.WriteNullValue(); - } - else - { - WriteFieldValue(writer, item.Value); - } + WriteFieldValue(writer, item.Value); } writer.WriteEndObject();