Skip to content

Commit 9cf400a

Browse files
committed
Don't convert date-looking strings to DateTime when deserializing untyped JSON; use decimal as the base numeric type for untyped JSON numbers, better matching Seq's internal representation.
1 parent ea2ccd7 commit 9cf400a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Seq.Api/Client/SeqApiClient.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ public sealed class SeqApiClient : IDisposable
4848
readonly JsonSerializer _serializer = JsonSerializer.Create(
4949
new JsonSerializerSettings
5050
{
51-
Converters = { new StringEnumConverter(), new LinkCollectionConverter() }
51+
Converters = { new StringEnumConverter(), new LinkCollectionConverter() },
52+
DateParseHandling = DateParseHandling.None,
53+
FloatParseHandling = FloatParseHandling.Decimal
5254
});
5355

5456
/// <summary>

0 commit comments

Comments
 (0)