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
fn main() { let buf = vec![]; let x:serde_json::Value = serde_json::from_slice(&buf).unwrap(); println!("{:?}",x); }
expected value:Null, But now, the code serialize error
Null
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("EOF while parsing a value", line: 1, column: 0)', src/main.rs:3:60
playground: link
The text was updated successfully, but these errors were encountered:
This is behaving correctly, since is not valid JSON.
Sorry, something went wrong.
No branches or pull requests
expected value:
Null
, But now, the code serialize errorplayground: link
The text was updated successfully, but these errors were encountered: