I have to convert a json into an object using jackson. The class is like:
class Country {
int a;
int b;
}
And the json i am getting:
{"country":{"a":1,"b":1}}
But when i am trying to deserialize this its giving me following error
org.codehaus.jackson.map.JsonMappingException: Unrecognized field "country"
If i remove "country", i am able to get the object.
Is there any way i can tell jackson to just ignore "country" from the json string?
Thanks in advance.