-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
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
Custom Converter fails when both decimal and doubles are present #2941
Comments
This seems related: #2839 |
I've narrowed it down to line 2204 in Just an idea. |
|
Source/destination types
Source/destination JSON
Expected behavior
I expect to be able to deserialize the JSON back into an Example record, even when using this custom
JsonConverter
:Actual behavior
A
FormatException
is thrown when attempting to parse the decimal, because the reader by default treats all floating point numbers the same via theFloatParseHandling
property. Changing theFloatParseHandling
property toDecimal
just moves the problem to parsing thedouble
instead.Steps to reproduce
The text was updated successfully, but these errors were encountered: