title: Change Object just before JSON serialization
body: <p>I want to change an object just before JSON Serialization. To do it, I've created an interface, with change method, and any class that implements this interface will "try" to change itself.  (<em>yes, probably doing it like this is not optimal, but for example sake will do</em>)</p>
  
  <pre><code>@JsonSerialize(using = ChangesValuesSerializer.class)
  public interface ChangesValues {
      void changeValues();
  }
  </code></pre>
  
  <p>Now, is <code>ChangesValuesSerializer</code> class I'm implementing <code>serialize</code> method. And want to know, how can I say Jackson, to call it's built in serializer on object.</p>
  
  <pre><code>class ChangesValuesSerializer extends JsonSerializer&lt;ChangesValues&gt; {
  
      @Override
      public void serialize(ChangesValues changesValues, JsonGenerator jsonGenerator,
              SerializerProvider serializerProvider) throws IOException,
              JsonProcessingException {
  
          changesValues.changeValues();
  
          // ***
          // -&gt;&gt; Just call Jacksons default serializer
          // ***
      }
  
  }
  </code></pre>