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
According to JSON spec, both of these should be errors:
fn main() { let x1: Result<serde_json::Value, _> = serde_json::from_str("18446744073709551615."); assert!(x1.is_err()); let x2: Result<serde_json::Value, _> = serde_json::from_str("18446744073709551616."); assert!(x2.is_err()); }
Playground
But this is the output, as of serde_json 1.0.88:
thread 'main' panicked at 'assertion failed: x2.is_err()', src/main.rs:5:5
The text was updated successfully, but these errors were encountered:
Thanks — good catch. I've published a fix in 1.0.89.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
According to JSON spec, both of these should be errors:
Playground
But this is the output, as of serde_json 1.0.88:
The text was updated successfully, but these errors were encountered: