title: Jackson Objectmapper on value of field?
body: <p>I am using Jackson <code>ObjectMapper</code> to convert to JSON string. I want to use a <code>PropertyNamingStrategy</code> so that my fields can be given different names.</p>
  
  <p>Ex: <code>attribute ---&gt; attr, name --&gt; nm</code></p>
  
  <pre><code>OBJECT MAPPER:---&gt; JSON STRING:
  {
    "attribute" : [ {
      "name" : "accessPolicyIDs",
      "value" : "R400"
    }, {
      "name" : "maxOfInstances",
      "value" : "10"
    } ]
  }
  </code></pre>
  
  <p>I can achieve this as by following class:</p>
  
  <pre><code>public class LongNameShortNameNamingStrategy extends PropertyNamingStrategyBase {
  
      @Override
      public String translate(String propertyName) {
  
          String shortName = null;
          shortName = LongNameShortNames.getShortName(propertyName);
          if (shortName != null){
              return shortName;
          }
  
          return propertyName;
      }
  }
  </code></pre>
  
  <p>However, now there is a requirement to convert the value inside <code>name</code> attribute to short name too. Ex:
   <code>accessPolicyIDs --&gt; acp, maxOfInstances --&gt; mxi</code></p>
  
  <p>How can this be achieved ?? 
  Can <code>ObjectMapper</code> be configured to work on value of a particular field??</p>