title: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "g"
body: <p>Could some one please whats wrong with the below java pojo. I an getting exception </p>
  
  <p>Json</p>
  
  <pre><code>    {
        "epoch": 1407877412466,
        "ids": {
          "DUMMY1": "abcd",
          "DUMMY2": "pqrs"
        },
        "vf": {
          "ANS1": {
            "g": 0
          },
          "ANS2": {
            "g": 0
          },[...]
        }
      }
  </code></pre>
  
  <p>Exception</p>
  
  <p>com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "g" (class com.adtruth.zander.persistence.domain.VfdData), not marked as ignorable (4 known properties: "query", "vf", "ids", "epoch"])
      at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:51)
      at com.fasterxml.jackson.databind.DeserializationContext.reportUnknownProperty(DeserializationContext.java:731)
      at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:915)
      at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1298)</p>
  
  <p>POJO
          package com.temp;</p>
  
  <pre><code>    import java.io.IOException;
      import java.io.Serializable;
      import java.util.Calendar;
      import java.util.Map;
  
      import com.fasterxml.jackson.annotation.JsonCreator;
      import com.fasterxml.jackson.annotation.JsonInclude;
      import com.fasterxml.jackson.annotation.JsonInclude.Include;
      import com.fasterxml.jackson.annotation.JsonProperty;
      import com.fasterxml.jackson.core.type.TypeReference;
      import com.google.common.collect.Maps;
  
      @JsonInclude(Include.NON_EMPTY)
      public class VfdData implements Serializable {
  
        @JsonProperty("epoch")
        private Long epoch = Calendar.getInstance().getTimeInMillis();
  
        @JsonProperty("query")
        private boolean query = false;
  
        @JsonProperty("ids")
        private Map&lt;String, Object&gt; ids = Maps.newHashMap();
  
        @JsonProperty("vf")
        private Map&lt;String, Scores&gt; vfScores = Maps.newLinkedHashMap();
  
        public Long getEpoch() {
          return epoch;
        }
  
        public void setEpoch(final Long epoch) {
          this.epoch = epoch;
        }
  
        public boolean isQuery() {
          return query;
        }
  
        public void setQuery(final boolean query) {
          this.query = query;
        }
  
        public Map&lt;String, Object&gt; getIds() {
          return ids;
        }
  
        public void setIds(final Map&lt;String, Object&gt; ids) {
          this.ids = ids;
        }
  
        public Map&lt;String, Scores&gt; getVfScores() {
          return vfScores;
        }
  
        public void setVfScores(final Map&lt;String, Scores&gt; vfScores) {
          this.vfScores = vfScores;
        }
  
        @JsonInclude(Include.NON_EMPTY)
        public class Scores {
  
          @JsonCreator
          public Scores() {
          }
  
          @JsonProperty("g")
          private Integer score;
  
          public Integer getScore() {
            return score;
          }
  
          public void setScore(final Integer score) {
            this.score = score;
          }
        }
  
      }
  </code></pre>