title: resolving com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field
body: <p>This <a href="http://www.thejavageek.com/2015/12/16/jax-rs-hello-world-example-with-wildfly/" rel="nofollow noreferrer">example works</a> fine for me in my eclipse. However, when I have changed the Person class to the following :</p>
  
  <pre><code>package com.thejavageek.jaxrs.model;
  
  public class Person {
  
  
  private int userSelectList;
  
      public int getUserSetSelectList() {
          return userSelectList;
      }
  
      public void setUserSetSelectList(int userSelectList) {
          this.userSelectList = userSelectList;
      }
  
  
  
  
  
      @Override
      public String toString() {
  
          return "Person [userSelectSet=" + userSelectList + "]";
      }
  
  }
  </code></pre>
  
  <p>And I tested by passing the JSON like the following :</p>
  
  <p><a href="https://i.stack.imgur.com/U4xud.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U4xud.png" alt="enter image description here"></a></p>
  
  <p>Error:</p>
  
  <pre><code>com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "userSelectList" (class com.thejavageek.jaxrs.model.Person), not marked as ignorable (one known property: "userSetSelectList"])
   at [Source: io.undertow.servlet.spec.ServletInputStreamImpl@6418702f; line: 1, column: 20] (through reference chain: com.thejavageek.jaxrs.model.Person["userSelectList"])
  </code></pre>
  
  <p>Why is it that the example form the link I shared above works fine and not this one?</p>