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

serde_json fails when using flattening while tracing-bunyan-formatter in dependencies #5

Closed
thekuom opened this issue May 2, 2021 · 1 comment

Comments

@thekuom
Copy link

thekuom commented May 2, 2021

Minimal example: https://github.com/thekuom/serde_json_tracing_bunyan_formatter_bug_report

When calling serde_json::from_str() on a struct with #[serde(flatten)], I get the following error:

deserialize failed: Error("invalid type: map, expected i32", line: 3, column: 9)

Without tracing-bunyan-formatter installed, the deserialization succeeds, which you can check on the without-tracing-bunyan-formatter branch in my minimal example.

I also commented on an issue here: serde-rs/json#768 (comment)

@thekuom
Copy link
Author

thekuom commented May 2, 2021

Actually, just found serde-rs/json#505, and tracing-bunyan-formatter has arbitrary-precision on by default

@thekuom thekuom closed this as completed May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant