首页 > 解决方案 > 从 JSON 文件中删除重复的 JSON 表示

问题描述

我有大约 2000 个 JSON 文件,它们具有重复的表示形式,例如:

{
    "vulnerabilities": [],
    "ok": true,
    "dependencyCount": 2,
    "org": "org",
    "isPrivate": true,
    "licensesPolicy": {
      "severities": {},
      "orgLicenseRules": {
        "AGPL-1.0": {
          "licenseType": "AGPL-1.0",
          "severity": "high",
          "instructions": ""
        }
      }
    }
}
{
    "vulnerabilities": [],
    "ok": true,
    "dependencyCount": 2,
    "org": "org",
    "isPrivate": true,
    "licensesPolicy": {
      "severities": {},
      "orgLicenseRules": {
        "AGPL-1.0": {
          "licenseType": "AGPL-1.0",
          "severity": "high",
          "instructions": ""
        }
      }
    }
}

我想从根本上删除vulnerabilitiesJSON 文件目录中的重复条目。

我该怎么做?

标签: json

解决方案


推荐阅读