You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JsonInclude.Include.ALWAYS is the default value. However, if you use @JsonInclude instead of @JsonInclude(JsonInclude.Include.ALWAYS) it renders {"title":"The Hobbit"}
The text was updated successfully, but these errors were encountered:
sdelamo
changed the title
JsonInclude should be equivalent to @JsonInclude(JsonInclude.Include.ALWAYS)
@JsonInclude should be equivalent to @JsonInclude(JsonInclude.Include.ALWAYS)
Jul 26, 2024
@JsonInclude(JsonInclude.Include.ALWAYS)
For an object such as:
Renders:
{"title":"The Hobbit","author":null}
@JsonInclude
JsonInclude.Include.ALWAYS
is the default value. However, if you use@JsonInclude
instead of@JsonInclude(JsonInclude.Include.ALWAYS)
it renders{"title":"The Hobbit"}
The text was updated successfully, but these errors were encountered: