Skip to content
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

Discrepancy between serde_json::from_{reader,str} #1140

Open
rmanoka opened this issue Jun 8, 2024 · 0 comments
Open

Discrepancy between serde_json::from_{reader,str} #1140

rmanoka opened this issue Jun 8, 2024 · 0 comments

Comments

@rmanoka
Copy link

rmanoka commented Jun 8, 2024

Thanks for the brilliant crate!

I've a suprising bug, where a call to serde_json::from_str parses correctly, but a similar call to serde_json:from_reader fails. The type that triggers the error is an untagged enum: ModelWrapper .

Here's a mwip: https://github.com/rmanoka/serde-json-tokenizer-deserialize-bug . The Deserialize impl on the type is via the derive-macros, so my guess is this may be a bug in serde_json?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant