title: Different names of JSON property during serialization and deserialization
body: <p>Is it possible: to have one field in class, but different names for it during serialization/deserialization in Jackson library?</p>
  
  <p>For example, I have class "Coordiantes".</p>
  
  <pre><code>class Coordinates{
    int red;
  }
  </code></pre>
  
  <p>For deserialization from JSON want to have format like this:</p>
  
  <pre><code>{
    "red":12
  }
  </code></pre>
  
  <p>But when I will serialize object, result should be like this one:</p>
  
  <pre><code>{
    "r":12
  }
  </code></pre>
  
  <p>I tried to implement this by applying <code>@JsonProperty</code> annotation both on getter and setter (with different values):</p>
  
  <pre><code>class Coordiantes{
      int red;
  
      @JsonProperty("r")
      public byte getRed() {
        return red;
      }
  
      @JsonProperty("red")
      public void setRed(byte red) {
        this.red = red;
      }
  }
  </code></pre>
  
  <p>but I got an exception:</p>
  
  <blockquote>
    <p>org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "red"</p>
  </blockquote>