I've been working around the serializer implementations by using skip_serializing_if attributes on struct fields to avoid serializing an empty option, vec or map (for example here)
I'm wondering if this should be the default and if you'd accept a PR for this in this library ? :)