title: AWS Lambda json deserialization with jackson annotations
body: <p>I'm calling an aws lambda with a json body. So the fields of the json are with different name from the ones in the POJO. So what I did is to add @JsonProperty on the fields to tell jackson what are the names in json. But for some reason it seems that it doesn't recognize them and all the fields are null. If I pass a json with the same field names as the POJO it's working. Here's my class:</p>
  
  <pre><code>public class Event implements Identifiable {
  
      @JsonProperty("distinct_id")
      private String distinctId;
  
      @JsonProperty("user_id")
      private Integer userId;
  
      @JsonDeserialize(using = LocalDateTimeDeserializer.class)
      @JsonSerialize(using = LocalDateTimeSerializer.class)
      private LocalDateTime eventDateTime;
  
      //Here are the getters and setters
  }
  </code></pre>
  
  <p>If I pass </p>
  
  <pre><code>{"distinct_id":"123", "user_id":123, "dt":"2017-01-04T08:45:04+00:00"} 
  </code></pre>
  
  <p>all the fields are null and with distinctId, userId, eventDateTime it's serializing ok with the exception that it also doesn't recognize my custom serializers/deserializers but this actually is the same problem.</p>
  
  <p>My conclusion is that for some reason the aws jackson is not working with the annotations but it doesn't make sense.</p>