UnrecognizedPropertyException: Unrecognized field, not marked as ignorable - Parsing Error using Jackson

I am trying to convert a certain JSON string to a Java object. Below is the JSON string I am trying to parse -

{
  "customer": {
    "id": "7",
    "name": "Tim",
    "city": "Orlando",
    "mobile": 8965288372,
    "twitter": "Tim007"
  }
}

and here is my model class-

class Customer{ 
	private int id; 
	private String name; 
	private String city; 
	private long mobile; 
	..... 
}

I receive the JSON string from a server and it keeps on adding new fields in it. As you can see they added "twitter" field which is not present in my model class customer. How do I ignore this "twitter" field to avoid below Error?


Exception in thread "main" com.fasterxml.jackson.databind.exc. UnrecognizedPropertyException: Unrecognized field "twitter" (class customer$twitter), not marked as ignorable (4 known properties: , "id", "city", "name", "phone"])