{
 "code": "MA",
 "alpha3": "MAR",
 "numeric": "504",
 "flag": "🇲🇦",
 "name": "Morocco",
 "official": "Kingdom of Morocco",
 "native": [
  "المغرب",
  "ⵍⵎⴰⵖⵔⵉⴱ"
 ],
 "independent": true,
 "status": "officially-assigned",
 "unMember": true,
 "region": "Africa",
 "subregion": "Northern Africa",
 "capital": [
  "Rabat"
 ],
 "coords": [
  32,
  -5
 ],
 "area": 446550,
 "landlocked": false,
 "borders": [
  "DZ",
  "EH",
  "ES"
 ],
 "demonym": "Moroccan",
 "tld": [
  ".ma",
  "المغرب."
 ],
 "cioc": "MAR",
 "population": 37387600,
 "gdp": 337500000000,
 "literacy": 67.1,
 "groups": [
  "015",
  "UN"
 ],
 "languages": [
  {
   "code": "ar",
   "name": "Arabic",
   "percent": 62,
   "writing": null,
   "status": "official"
  },
  {
   "code": "fr",
   "name": "French",
   "percent": 36,
   "writing": null,
   "status": "de_facto_official"
  },
  {
   "code": "tzm",
   "name": "Central Atlas Tamazight",
   "percent": 9.8,
   "writing": null,
   "status": "official"
  },
  {
   "code": "ary",
   "name": "Moroccan Arabic",
   "percent": 87,
   "writing": null,
   "status": null
  },
  {
   "code": "zgh",
   "name": "Standard Moroccan Tamazight",
   "percent": 22,
   "writing": null,
   "status": null
  },
  {
   "code": "en",
   "name": "English",
   "percent": 14,
   "writing": null,
   "status": null
  },
  {
   "code": "shi",
   "name": "Tachelhit",
   "percent": 8.7,
   "writing": null,
   "status": null
  },
  {
   "code": "shi-Latn",
   "name": null,
   "percent": 8.7,
   "writing": 5,
   "status": null
  },
  {
   "code": "rif",
   "name": "Riffian",
   "percent": 4.9,
   "writing": 5,
   "status": null
  },
  {
   "code": "rif-Tfng",
   "name": null,
   "percent": 4.9,
   "writing": 5,
   "status": null
  },
  {
   "code": "mey",
   "name": null,
   "percent": 0.82,
   "writing": null,
   "status": null
  },
  {
   "code": "es",
   "name": "Spanish",
   "percent": 0.065,
   "writing": null,
   "status": null
  }
 ],
 "locales": [
  "ar-MA",
  "fr-MA",
  "rif-MA",
  "shi-Latn-MA",
  "shi-Tfng-MA",
  "tzm-MA",
  "zgh-MA"
 ],
 "currencies": [
  "MAD"
 ],
 "formerCurrencies": [
  "MAF"
 ],
 "timezones": [
  "Africa/Casablanca"
 ],
 "week": {
  "firstDay": "mon",
  "weekendStart": "sat",
  "weekendEnd": "sun",
  "minDays": 1
 },
 "hourCycle": {
  "preferred": "H",
  "allowed": [
   "H",
   "h",
   "hB",
   "hb"
  ]
 },
 "calendars": [
  "gregorian",
  "islamic",
  "islamic-civil",
  "islamic-tbla"
 ],
 "measurement": {
  "system": "metric",
  "temperature": null,
  "paper": "A4"
 },
 "callingCodes": [
  "+212"
 ],
 "phone": {
  "callingCode": "212",
  "mainForCode": true,
  "intlPrefix": "00",
  "preferredIntlPrefix": "",
  "nationalPrefix": "0",
  "leadingDigits": "[5-8]",
  "lengths": [
   9
  ],
  "types": {
   "fixedLine": {
    "pattern": "5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-9])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}",
    "example": "520123456",
    "lengths": [
     "9"
    ],
    "national": "05 20 12 34 56",
    "international": "+212 5 20 12 34 56",
    "e164": "+212520123456",
    "layout": "XX XX XX XX XX"
   },
   "mobile": {
    "pattern": "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}",
    "example": "650123456",
    "lengths": [
     "9"
    ],
    "national": "06 50 12 34 56",
    "international": "+212 6 50 12 34 56",
    "e164": "+212650123456",
    "layout": "XX XX XX XX XX"
   },
   "tollFree": {
    "pattern": "80[0-7]\\d{6}",
    "example": "801234567",
    "lengths": [
     "9"
    ],
    "national": "080-1234567",
    "international": "+212 80 1234567",
    "e164": "+212801234567",
    "layout": "XXX-XXXXXXX"
   },
   "premiumRate": {
    "pattern": "89\\d{7}",
    "example": "891234567",
    "lengths": [
     "9"
    ],
    "national": "089-1234567",
    "international": "+212 89 1234567",
    "e164": "+212891234567",
    "layout": "XXX-XXXXXXX"
   },
   "voip": {
    "pattern": "(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}",
    "example": "592401234",
    "lengths": [
     "9"
    ],
    "national": "05 92 40 12 34",
    "international": "+212 5 92 40 12 34",
    "e164": "+212592401234",
    "layout": "XX XX XX XX XX"
   }
  },
  "formats": [
   {
    "pattern": "(\\d{4})(\\d{5})",
    "leading": [
     "892"
    ],
    "format": "$1-$2",
    "prefixRule": "$NP$FG"
   },
   {
    "pattern": "(\\d{2})(\\d{7})",
    "leading": [
     "8(?:0[0-7]|9)"
    ],
    "format": "$1-$2",
    "prefixRule": "$NP$FG"
   },
   {
    "pattern": "(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
    "leading": [
     "[5-8]"
    ],
    "format": "$1 $2 $3 $4 $5",
    "prefixRule": "$NP$FG"
   }
  ],
  "emergency": {
   "pattern": "1(?:[59]|77)",
   "example": "15",
   "lengths": "2,3"
  }
 },
 "address": {
  "format": "%N%n%O%n%A%n%Z %C",
  "lines": [
   "{Name}",
   "{Organization}",
   "{Street address}",
   "{Postal code} {City}"
  ],
  "required": [],
  "postalRegex": "\\d{5}",
  "postalExamples": [
   "53000",
   "10000",
   "20050",
   "16052"
  ]
 }
}