I have ~2000 JSON files that have duplicate representations like:
{
"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": ""
}
}
}
}
I want to essentially remove duplicate entries for vulnerabilities
in a directory of JSON files.
How might I do that?