`null` values cannot be handled
s1ck opened this issue · 0 comments
s1ck commented
If we have results like:
foo: { bar: { baz: 1337 } }
foo: { bar: null }
and represent that as
#[derive(Deserialize)]
struct Foo {
bar: Option<Baz>
}
we get InvalidType { received: Unit, expected: "struct Baz" }
In serde_json
, null
values can be handled that way. Would be nice if we could do it the same way.