How can I get @JsonIgnore to work I have a class. And even if I put the annotation there it has no effect on the output. I am using Jackson.
public class Que
In my case JsonIgnore was not working only on dates. Then I understood that was because of @JsonFormat() that I was using to define the format of date. Removing that solved the issue.