Skip to content

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

Open
@rmanoka

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions