json - 从 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": ""
}
}
}
}
我想从根本上删除vulnerabilities
JSON 文件目录中的重复条目。
我该怎么做?
解决方案
推荐阅读
- javascript - 为数组返回 Promise 的 javascript 函数
- javascript - 如何优先考虑承诺结果?
- python - Apache Pyspark v2.3.0 中的动态数据框模式构建
- tensorflow - 为什么我的 TensorFlow 分析时间线在 GPU 上显示空闲时间?
- android - 在 Android onCameraFrme 中更改 opengl 对象顶点
- google-maps - 更高分辨率的地图和更高的缩放级别
- php - Html2Pdf:图像异常
- apache-spark - 将 DataFrame 中的元组聚合在一起
- javascript - Promise 创建中的“this”是什么?
- python - 如何自定义默认值