code: function minifyJSON(json) {
          var js = [];
  
          json.forEach(function (countryData) {
              var pairs = [];
              countryData.regions.forEach(function (info) {
                  if (_.has(info, 'shortCode')) {
                      pairs.push(info.name + '~' + info.shortCode);
                  } else {
                      pairs.push(info.name);
                  }
              });
  
              var regionListStr = pairs.join('|');
              js.push([
                  countryData.countryName,
                  countryData.countryShortCode,
                  regionListStr
              ]);
          });
  
          return js;
      }
docs: converts the data.json content from the country-region-data