diff options
Diffstat (limited to 'src/slskd/Events/Types')
| -rw-r--r-- | src/slskd/Events/Types/EventRecord.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/slskd/Events/Types/EventRecord.cs b/src/slskd/Events/Types/EventRecord.cs index 4323a42b..685a090c 100644 --- a/src/slskd/Events/Types/EventRecord.cs +++ b/src/slskd/Events/Types/EventRecord.cs @@ -38,10 +38,16 @@ public record EventRecord private static JsonSerializerOptions JsonSerializerOptions { get; } = new JsonSerializerOptions() { PropertyNameCaseInsensitive = true, - DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, + DefaultIgnoreCondition = JsonIgnoreCondition.Never, PropertyNamingPolicy = JsonNamingPolicy.CamelCase, Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, WriteIndented = false, + Converters = + { + new IPAddressConverter(), + new JsonStringEnumConverter(), + new KnownUnsupportedTypeConverter(), + }, }; /// <summary> |
