I have an interface in java and I want to use that for json parsing. For example, consider the interface:
interface Student {
String getName();
int getId();
}
And with a json like:
{"id":1, "name"="jon"}
I want to parse that json using the interface alone. There are multiple concrete implementations of this class, and the implementing classes have a lot more fields than in json, so I don't want to use those classes. I know that I can achieve that by using dynamix proxies in java by defining my own invocation handlers. But, is there something inbuilt in jackson already for doing that?
Thanks in advance.