-
Notifications
You must be signed in to change notification settings - Fork 555
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
Why 3 types of number? #48
Comments
Json doesn't define what a number means, so we err here on flexibility in order to avoid losing precision. If we only had a single One downside with our approach is that serde doesn't yet provide a good model for arbitrarily sized integers, so we cut things off at 64 bytes. If I recall correctly, this is the same behavior as RapidJSON and the various java parsers so I figured it wouldn't be a significant impact. |
Ok, thanks! 😊 |
This was fixed in #188 / serde_json 0.9.0. Now there is one serde_json::Value::Number variant. |
Just an innocent question, I'm curious to here the reason for three types (
F64
,U64
, andI64
) of what is ultimately typed in JSON as a number. This may betray the fact that I was never a low level programmer, but even if there is a low level reason I'd like to know it. Thanks for the great open source project 😊The text was updated successfully, but these errors were encountered: