Lets take a example my object Person having 2 properties below
public class Person {
String name;
Integer age;
//getters and setters
}
but jsonaray contains more than 2 properties
[{
"name": "ab",
"age": 18,
"c": "dc",
"d": "ef"
}]
Here extra elements c and d are there. Can I convert that jsonarray to set person object?