Add support for new property of @JsonProperty
to support read-only/write-only use cases
#813
Milestone
@JsonProperty
to support read-only/write-only use cases
#813
Although it is possible to support read-only/write-only use cases with a combination of various settings, like visibility settings, and/or addition of setters/getters, it would be useful to just have a property that dictates intended behavior, like:
and default to
auto
for backwards compatibility.The benefit here is that this basically allows overriding of visibility settings for individual properties.
For example:
password
field, we may want "write-only" behavior, so that password is never exposed on serialization, but may be passed in via deserializationread-only
setting would allow use ofprivate
accessor or field for serialization, without having to change visibility settings, or make getterpublic
read-write
) to enable convenient round-trip behavior (for example, Scala module could do this at least for case classes, maybe all typical Scala beans).The text was updated successfully, but these errors were encountered: