Ignoring a field without modifying the POJO class with Jackson
<p>My POJO class has <code>@JsonIgnore</code> on the declaration of a field, not on the getter and setter methods. It is a generated file and I can't change much in it.</p>

<p>How do I ignore that field while writing using <code>JsonGenerator.Setting</code>? Using <code>@JsonIgnore</code> on getters and setters works. But can't modify the generated POJO class.</p>