How to read with interfaces in the model?
问题 I would like to know how to read the JSON with a dynamic layout into my object that has an interface IPeople . When I try I get an error: 'Could not create an instance of type 'xxxx'. Type is an interface or abstract class and cannot be instantiated. I have spent 2 days searching through Google and I tried using converters and it only works for one object at a time So I would have to choose between a Staff converter and a spectator converter. How can I get both objects to load using the