Deserialzing untagged
versions should default to latest version (not earliest)
#8
Labels
bug
Something isn't working
Hi! This library is so useful, but I'm failing to use it with
serde_json
. I've tried the following way:The output is:
So, the current behavior is that
serde_json::from_str::<VersionedCharacter>(&freeza_ser)
is deserializing into the first version, and I want it to deserialize like the following:Am I missing something crucial here? Is there any way for this lib to implement that parsing automatically?
Thank you!
The text was updated successfully, but these errors were encountered: