{
  "type": "object",
  "properties": {
    "comparisonGroup": {
      "type": "object",
      "properties": {
        "bottomTier": {
          "type": "object",
          "ref": "#/definitions/SimpleComparisonGroup"
        },
        "identifier": {
          "type": "string"
        },
        "isCustom": {
          "type": "boolean"
        },
        "isHidden": {
          "type": "boolean"
        },
        "isMain": {
          "type": "boolean"
        },
        "label": {
          "type": "string"
        },
        "members": {
          "type": "array",
          "ref": "#/definitions/SimpleArea"
        },
        "owners": {
          "type": "array",
          "ref": "#/definitions/SimpleArea"
        },
        "topTier": {
          "type": "object",
          "ref": "#/definitions/SimpleComparisonGroup"
        },
        "type": {
          "type": "object",
          "ref": "#/definitions/SimpleComparisonGroupType"
        }
      }
    }
  },
  "definitions": {
    "AreaType": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string"
        },
        "isGroup": {
          "type": "boolean"
        },
        "isLocalAuthority": {
          "type": "boolean"
        },
        "isOfficial": {
          "type": "boolean"
        },
        "label": {
          "type": "string"
        },
        "longLabel": {
          "type": "string"
        },
        "shortLabel": {
          "type": "string"
        }
      }
    },
    "ComparisonGroup": {
      "type": "object",
      "properties": {
        "bottomTier": {
          "type": "object",
          "ref": "#/definitions/SimpleComparisonGroup"
        },
        "identifier": {
          "type": "string"
        },
        "isCustom": {
          "type": "boolean"
        },
        "isHidden": {
          "type": "boolean"
        },
        "isMain": {
          "type": "boolean"
        },
        "label": {
          "type": "string"
        },
        "members": {
          "type": "array",
          "ref": "#/definitions/SimpleArea"
        },
        "owners": {
          "type": "array",
          "ref": "#/definitions/SimpleArea"
        },
        "topTier": {
          "type": "object",
          "ref": "#/definitions/SimpleComparisonGroup"
        },
        "type": {
          "type": "object",
          "ref": "#/definitions/SimpleComparisonGroupType"
        }
      }
    },
    "SimpleArea": {
      "type": "object",
      "properties": {
        "areaType": {
          "type": "object",
          "ref": "#/definitions/AreaType"
        },
        "children": {
          "type": "array",
          "ref": "#/definitions/SimpleArea"
        },
        "identifier": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "longLabel": {
          "type": "string"
        },
        "memberOf": {
          "type": "array",
          "ref": "#/definitions/ComparisonGroup"
        },
        "ownerOf": {
          "type": "array",
          "ref": "#/definitions/ComparisonGroup"
        },
        "parents": {
          "type": "array",
          "ref": "#/definitions/SimpleArea"
        },
        "shortLabel": {
          "type": "string"
        }
      }
    },
    "SimpleComparisonGroup": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string"
        },
        "isCustom": {
          "type": "boolean"
        },
        "isHidden": {
          "type": "boolean"
        },
        "isMain": {
          "type": "boolean"
        },
        "label": {
          "type": "string"
        },
        "members": {
          "type": "array",
          "ref": "#/definitions/SimpleArea"
        },
        "owners": {
          "type": "array",
          "ref": "#/definitions/SimpleArea"
        },
        "type": {
          "type": "object",
          "ref": "#/definitions/SimpleComparisonGroupType"
        }
      }
    },
    "SimpleComparisonGroupType": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      }
    }
  }
}