ObjectMapper create specific instance based on json value
I'm trying to use ObjectMapper to deserialize json but got some problem. Probably what I want is not possible with ObjectMapper but I will ask anyway for a good approach. Let' say I have a class with the list of…