@JsonApiMeta
@JsonInclude(JsonInclude.Include.NON_NULL)
private final String metaProperty = null;
@JsonApiMeta
@JsonInclude(JsonInclude.Include.NON_NULL)
@Nullable
public String getMetaProperty() {
return null;
}
The result contains "metaProperty": null in both cases. The metaProperty should not be included in meta at all, when @JsonInclude(JsonInclude.Include.NON_NULL) is used.
The following does not work together:
The result contains
"metaProperty": null
in both cases. ThemetaProperty
should not be included in meta at all, when@JsonInclude(JsonInclude.Include.NON_NULL)
is used.