We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var options = new JsonSerializerOptions(); options.NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals; options.SetupExtensions();
When i serialize instance with NaN, Infinity,-Infinity
NaN
Infinity
-Infinity
I will got exception
System.ArgumentException:“.NET number values such as positive and negative infinity cannot be written as valid JSON.”
TextJson support PR at dotnet/runtime#30255
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When i serialize instance with
NaN
,Infinity
,-Infinity
I will got exception
System.ArgumentException:“.NET number values such as positive and negative infinity cannot be written as valid JSON.”
TextJson support PR at dotnet/runtime#30255
The text was updated successfully, but these errors were encountered: