Jackson – How to ignore null fields
In Jackson, we can use @JsonInclude(JsonInclude.Include.NON_NULL) to ignore the null fields. To ignore the null fields, put @JsonInclude on class level or field level. Alternatively, we also can configure to…
Favourite tutorials for developers
In Jackson, we can use @JsonInclude(JsonInclude.Include.NON_NULL) to ignore the null fields. To ignore the null fields, put @JsonInclude on class level or field level. Alternatively, we also can configure to…
Filter a null value from a Stream by using Stream.filter(x -> x!=null). Alternatively, filter with Objects::nonNull method reference