Question regarding @JsonIgnore

Hello, everyone,
I have a question regarding the JSON Ignore annotation. And I am aware that if I use @JsonIgnore, for example, the “getter” is not taken into account and therefore an attribute of a class is not transferred to the JSON representation.

In my concrete example I send data from “Transactions” to my WebApi. A block explorer accesses this and displays the whole thing graphically (this is a blockchain project).

In addition to some getters, two setters were marked with @JsonIgnore in my book. Now my question: Can someone explain to me in their own words what it means exactly if only the setter but not the getter is annotated with JSON Ignore?

Hi @Encera,

I think you ended up in the wrong forum. This community is about JSON Forms which is a set of libraries to render JSON Schema based data as forms. @JsonIgnore seems to be an annotation for Jackson, so out of the scope of our framework.

From my guess I would think this is about read-only and write-only attributes, but you should really check somewhere else, for example in Stackoverflow.

Oh Im sorry thank you👍