Resolves ArgumentException when processing 0.15.5 loot
Resolves the following exception: System.ArgumentException: .NET number values such as positive and negative infinity cannot be written as valid JSON. To make it work when using 'JsonSerializer', consider specifying 'JsonNumberHandling.AllowNamedFloatingPointLiterals'
This commit is contained in:
parent
f6f2acd842
commit
0719a7bfdd
@ -9,6 +9,7 @@ public class NetJsonSerializer : IJsonSerializer
|
||||
private static JsonSerializerOptions _serializeOptions = new()
|
||||
{
|
||||
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
||||
NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals,
|
||||
Converters =
|
||||
{
|
||||
new NetJsonKeyConverter(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user