docs: function getJsonLicense (json) {
    var license = 'nomatch'
    if (typeof json === 'string') {
      license = matchLicense(json) || 'nomatch'
    } else {
      if (json.url) {
        license = { name: json.type, url: json.url }
      } else {
        license = matchLicense(json.type)
      }
    }
    return license
  }