title: Rename fields in object with Jackson
body: <p>I have the JSON:</p>
  
  <pre><code>{"400" : "120Hz"} 
  </code></pre>
  
  <p>(actually, my JSON is a lot more complex, and, basically, huge)</p>
  
  <p>I use <code>Jackson</code> to map data to the <code>FrequencyDTO</code>.</p>
  
  <pre><code>public class FrequencyDTO {
  
      @JsonProperty("400")
      private String frequency;
  
      public String getFreqiency() {
          return this.frequency;
      }
  
      public void setFrequency(String frequency) {
          this.frequency = frequency;
      }
  }
  </code></pre>
  
  <p>After that, I need to send this DTO to front end, but I want it's fields to be human-readable, such as: <code>{"frequency_value" : "120Hz"}</code>.</p>
  
  <p>The only thing that came to my mind is to create some kind of <code>FrequencyFrontendDTO</code>, e.g.:</p>
  
  <pre><code>public class FrequencyFrontendDTO {
  
      @JsonProperty("frequency_value")
      public String frequency;
  
      //getters and setters
  }
  </code></pre>
  
  <p>and map it with <code>FrequencyDTO</code>.</p>
  
  <p>Is there a cleaner way to do it?</p>