title: Jackson UnrecognizedPropertyException
body: <p>I am trying to convert JsonString to Java object.</p>
  
  <p>Json object</p>
  
  <pre><code>{
  "action": "added",
  "data": {
      "Quote": {
          "TotalDiscountsAmount": 0,
          "Id": "test123"
      },
      "Owner": {
          "Username": "00000000",
          "Id": "00000000"
      },
      "Discount_Amount__c": 0,
      "Base_List_Price__c": 574.88,
      "TotalList": 574.88,
      "Id": "000000",
      "ExtendedTotalList": 574.88,
      "BaseListPrice": 474.88
  }
  }
  </code></pre>
  
  <p>My POJOs:</p>
  
  <p><strong>AddtocartJson.java</strong></p>
  
  <pre><code>package com.product.json;
  
  import javax.annotation.Generated;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @Generated("org.jsonschema2pojo")
  @JsonPropertyOrder({
    "action",
    "data"
  })
  public class AddToCartJson {
      @JsonProperty("action")
      private String action;
      @JsonProperty("data")
      private Data data;
  
      @JsonProperty("action")
      public String getAction() {
          return action;
      }
  
      @JsonProperty("action")
      public void setAction(String action) {
          this.action = action;
      }
  
      @JsonProperty("data")
      public Data getData() {
          return data;
      }
  
      @JsonProperty("data")
      public void setData(Data data) {
          this.data = data;
      }
  }
  </code></pre>
  
  <p><strong>Data.java</strong></p>
  
  <pre><code>package com.product.json;
  
  import javax.annotation.Generated;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @Generated("org.jsonschema2pojo")
  @JsonPropertyOrder({
    "Quote",
    "Owner",
    "Discount_Amount__c",
    "Base_List_Price__c",
    "TotalList",
    "Id",
    "ExtendedTotalList",
    "BaseListPrice"
  })
  public class Data {
  
      @JsonProperty("Quote")
      private com.product.json.Quote Quote;
      @JsonProperty("Owner")
      private com.product.json.Owner Owner;
      @JsonProperty("Discount_Amount__c")
      private Integer DiscountAmountC;
      @JsonProperty("Base_List_Price__c")
      private Double BaseListPriceC;
      @JsonProperty("TotalList")
      private Double TotalList;
      @JsonProperty("Id")
      private String Id;
      @JsonProperty("ExtendedTotalList")
      private Double ExtendedTotalList;
      @JsonProperty("BaseListPrice")
      private Double BaseListPrice;
  
      @JsonProperty("Quote")
      public com.product.json.Quote getQuote() {
          return Quote;
      }
  
      @JsonProperty("Quote")
      public void setQuote(com.product.json.Quote Quote) {
          this.Quote = Quote;
      }
  
      @JsonProperty("Owner")
      public com.product.json.Owner getOwner() {
          return Owner;
      }
  
      @JsonProperty("Owner")
      public void setOwner(com.product.json.Owner Owner) {
          this.Owner = Owner;
      }
  
      @JsonProperty("Discount_Amount__c")
      public Integer getDiscountAmountC() {
          return DiscountAmountC;
      }
  
      @JsonProperty("Discount_Amount__c")
      public void setDiscountAmountC(Integer DiscountAmountC) {
          this.DiscountAmountC = DiscountAmountC;
      }
  
      @JsonProperty("Base_List_Price__c")
      public Double getBaseListPriceC() {
          return BaseListPriceC;
      }
  
      @JsonProperty("Base_List_Price__c")
      public void setBaseListPriceC(Double BaseListPriceC) {
          this.BaseListPriceC = BaseListPriceC;
      }
  
      @JsonProperty("TotalList")
      public Double getTotalList() {
          return TotalList;
      }
  
      @JsonProperty("TotalList")
      public void setTotalList(Double TotalList) {
          this.TotalList = TotalList;
      }
  
      @JsonProperty("Id")
      public String getId() {
          return Id;
      }
  
      @JsonProperty("Id")
      public void setId(String Id) {
          this.Id = Id;
      }
  
      @JsonProperty("ExtendedTotalList")
      public Double getExtendedTotalList() {
          return ExtendedTotalList;
      }
  
      @JsonProperty("ExtendedTotalList")
      public void setExtendedTotalList(Double ExtendedTotalList) {
          this.ExtendedTotalList = ExtendedTotalList;
      }
  
      @JsonProperty("BaseListPrice")
      public Double getBaseListPrice() {
          return BaseListPrice;
      }
  
      @JsonProperty("BaseListPrice")
      public void setBaseListPrice(Double BaseListPrice) {
          this.BaseListPrice = BaseListPrice;
      }
  }
  </code></pre>
  
  <p><strong>Quote.java</strong></p>
  
  <pre><code>package com.product.json;
  
  import javax.annotation.Generated;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @Generated("org.jsonschema2pojo")
  @JsonPropertyOrder({
    "TotalDiscountsAmount",
    "Id"
  })
  public class Quote {
      @JsonProperty("TotalDiscountsAmount")
      private Integer TotalDiscountsAmount;
      @JsonProperty("Id")
      private String Id;
  
      @JsonProperty("TotalDiscountsAmount")
      public Integer getTotalDiscountsAmount() {
          return TotalDiscountsAmount;
      }
  
      @JsonProperty("TotalDiscountsAmount")
      public void setTotalDiscountsAmount(Integer TotalDiscountsAmount) {
          this.TotalDiscountsAmount = TotalDiscountsAmount;
      }
  
      @JsonProperty("Id")
      public String getId() {
          return Id;
      }
  
      @JsonProperty("Id")
      public void setId(String Id) {
          this.Id = Id;
      }
  }
  </code></pre>
  
  <p>When I try to convert JSON to Java class using the mapper, it's throwing an <code>UnrecognizedPropertyException</code>. Seems likes even though I have a <code>Quote</code> object somehow mapper is not able to recognize the object.</p>
  
  <blockquote>
    <p>org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "Quote" (Class com.product.json.Data), not marked as ignorable
        at [Source: java.io.StringReader@11547748; line: 1, column: 36] (through reference chain: com.product.json.AddToCartJson["data"]->       com.product.json.Data["Quote"])
            at org.codehaus.jackson.map.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:53)
            at org.codehaus.jackson.map.deser.StdDeserializationContext.unknownFieldException(StdDeserializationContext.java:267)
            at org.codehaus.jackson.map.deser.std.StdDeserializer.reportUnknownProperty(StdDeserializer.java:673)</p>
  </blockquote>
  
  <p>How can I fix this?</p>