mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-24 22:55:40 +00:00
Fix BoolConverter writing
This commit is contained in:
@@ -74,6 +74,9 @@ namespace CryptoExchange.Net.Converters.SystemTextJson
|
||||
|
||||
public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
|
||||
{
|
||||
if (value is bool boolVal)
|
||||
writer.WriteBooleanValue(boolVal);
|
||||
else
|
||||
writer.WriteNullValue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user