Abstract Models
Abstract Models in MTGJSON describe any JSON object or nested JSON object that provides a non-flat response. As such, they will have two or more levels of nested keys. It is worth noting that some Abstract Models are related directly to their type of file, such as AllPrices or CardTypes.
Example
Model Example
Any Abstract Model would look similar to this:
TypeScript
{
[key, string]: {
[key, string]: any;
};
}
Most data output by MTGJSON are not Abstract Models but are less complex models. Because of this, we document those types of models as Data Models.