Ignore Null Fields with Jackson | Baeldung
Ignore null fields with Jackson 2 - either globally, per class or even per field.