3 ms·
This doesn't deal with what type of object you create on deserialization, but you can have some form of inheritance in JSON Schema. You create a definition for
by michaelmior 4y ago
This doesn't deal with what type of object you create on deserialization, but you can have some form of inheritance in JSON Schema. You create a definition for the parent class and then reference that definition in the subclass and add whatever other attributes you need. JSON Schema doesn't have any understanding of classes, but this will allow you to do something similar.