Skip to content
On This Page

Data Models

Data Models in MTGJSON describe any JSON object or nested JSON object that provides a flat response. As such, they will only have one level of nested keys. Any additional nested keys that return another object that is also a flat response are they themselves, a Data Model, and will have its own documentation.

Example

Model Example

Any Data Model would look similar to this:

TypeScript
{
  [key, string]: any;
}

Most data output by MTGJSON are Data Models but some models have more complex structures which are outlined in Abstract Models.