We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2affa0a commit a2e5a6fCopy full SHA for a2e5a6f
src/EntityDb.Redis/Envelopes/JsonElementEnvelopeService.cs
@@ -5,12 +5,17 @@
5
using Microsoft.Extensions.Logging;
6
using System;
7
using System.Text.Json;
8
+using System.Text.Json.Serialization;
9
10
namespace EntityDb.Redis.Envelopes;
11
12
internal sealed class JsonElementEnvelopeService : IEnvelopeService<JsonElement>
13
{
- private static readonly JsonSerializerOptions JsonSerializerOptions = new JsonSerializerOptions();
14
+ private static readonly JsonSerializerOptions JsonSerializerOptions = new()
15
+ {
16
+ DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
17
+ };
18
+
19
private readonly ILogger<JsonElementEnvelopeService> _logger;
20
private readonly ITypeResolver _typeResolver;
21
0 commit comments