diff --git a/src/Doki.Output.Json/JsonOutput.cs b/src/Doki.Output.Json/JsonOutput.cs index 1c1170a..f86925a 100644 --- a/src/Doki.Output.Json/JsonOutput.cs +++ b/src/Doki.Output.Json/JsonOutput.cs @@ -1,10 +1,14 @@ using System.Text.Json; +using System.Text.Json.Serialization; namespace Doki.Output.Json; public sealed class JsonOutput(OutputOptions options) : IOutput { - private static readonly JsonSerializerOptions JsonSerializerOptions = new(); + private static readonly JsonSerializerOptions JsonSerializerOptions = new() + { + DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingDefault + }; public Task BeginAsync(CancellationToken cancellationToken = default) {