154
Trying to understand JSON…
(sopuli.xyz)
Post funny things about programming here! (Or just rant about your favourite programming language.)
If your Java dev is using Jackson to serialize to JSON, they might not be very experienced with Jackson, or they might think that a Java object with a null field would serialize to JSON with that field omitted. And on another project that might have been true, because Jackson can be configured globally to omit null properties. They can also fix this issue with annotations at the class/field level, most likely
@JsonInclude(Include.NON\_NULL)
.More details: https://www.baeldung.com/jackson-ignore-null-fields