title: UnrecognizedPropertyException: Unrecognized field error in android
body: <p>This is my POJO class.</p>
  
  <pre><code>public class Product implements ParentListItem {
    private String ProductName;
    private int ProductID;
    private String ProductImagePath;
    private String BrandName;
    private int BrandID;
    private String SubCategoryName;
    private int SubCategoryID;
    private List&lt;ProductVariant&gt; Variants = new ArrayList&lt;&gt;();
  
    Product(){}
  }
  </code></pre>
  
  <p>Json format:</p>
  
  <pre><code>[{
    "Variants": [{
      "VariantID": "1",
      "VariantName": "50 GM",
      "VariantImagePath": null,
      "MRP": "19.00",
      "SellPrice": "18.24",
      "InCart": "0"
    }],
    "ProductName": "Body Cleanser - Lemon Honey Kanti",
    "ProductID": "1",
    "BrandName": "Patanjali",
    "SubCategoryID": "44",
    "SubCategoryName": "Bathing Soap",
    "ProductImagePath": "\/images\/patanjali\/1819.png",
    "BrandID": "112"
  }]
  </code></pre>
  
  <p>I am trying to use this POJO like this.</p>
  
  <pre><code>for (DataSnapshot postSnapshot : snapshot.getChildren()) {
      Product product = postSnapshot.getValue(Product.class);
      products.add(product);
  }
  </code></pre>
  
  <p>But i am getting this error:</p>
  
  <blockquote>
    <p>Caused by:
    com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
    Unrecognized field "BrandID" (class com.example.sony.models.Product),
    not marked as ignorable (9 known properties: , "brandID",
    "subCategoryName", "productID", "childItemList", "variants",
    "productImagePath", "brandName", "subCategoryID", "productName"])</p>
  </blockquote>
  
  <p>Unrecognized field "BrandID" , but this field is available in POJO.</p>
  
  <p>I don't understand why my Capital case field are getting converted into Smallcase?</p>
  
  <p>Why is this error? how to fix that?</p>