title: How to map JSON fields to custom object properties?
body: <p>I have a simple <code>json</code> message with some fields, and want to map it to a java object using <code>spring-web</code>.</p>
  
  <p>Problem: my target classes fields are named differently than int he json response. How can I anyhow map them to the object without having to rename the fields in java?</p>
  
  <p>Is there some annotation that could be placed here?</p>
  
  <pre><code>{
    "message":"ok"
  }
  
  public class JsonEntity {
      //how to map the "message" json to this property?
      private String value;
  }
  
  RestTemplate rest = new RestTemplate();
  rest.getForObject(url, JsonEntity.class);
  </code></pre>