I have the following simple class:
import org.codehaus.jackson.annotate.JsonIgnoreProperties; @JsonIgnoreProperties({ \"thirdField\" }) public class Message
It didn't work for me any of the above answers, i found a workaround that I have reinitialized the object and values (copied the object).