You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a dupe of #44, although that issue mentions adding an annotation to allow skipping unknown fields. I think this issue's request should be the default; that's how most JSON parsers in other languages (and rustc-serialize) work.
When parsing JSON I'd like to only parse parts of the payload, e.g.
given JSON like
{ 'x': 32, 'y': 12 }
I'd expect serde to deserialize it using the following struct:However, this fails with an
UnknownField("x")
error.This is important if you are only interested in parts of the payload, or if working with dynamic payload.
The text was updated successfully, but these errors were encountered: