title: ObjectMapper not considering annotations
body: <p>I have the below piece of code which would convert an annotated Java object into Json String. </p>
  
  <pre><code> try {
              String jsonString = mapper.writeValueAsString(obj);
              LOGGER.debug("logAsJson", jsonString);
          } catch (Exception e) {
              LOGGER.warn("logAsJson", "Exception in logging only. Nothing critical! ", e);
          }
  </code></pre>
  
  <p>And my class would look something like this</p>
  
  <p>public class Car {</p>
  
  <pre><code>@JsonProperty("capabilities")
  private List&lt;Capability&gt; capability = new ArrayList&lt;Capability&gt;();
  
  @JsonProperty("periodicity")
  @NotNull
  private Periodicity periodicity;
  
  @JsonProperty("car_driver")
  private List&lt;carDriver&gt; carDriver = new ArrayList&lt;carDriver&gt;();
  </code></pre>
  
  <p>}</p>
  
  <p>Problem is that while creating the json string from the object, object mapper is not considering the annotations for field names. </p>
  
  <p>Thanks in advance.</p>