删除json文件中所有出现的键

如何删除json文件中所有出现的键?在下面的示例中,我要删除所有“评级”键。

现在如何:

{
  "player": {
    "rating": "99",
    "rarity": "super_rare"
  },
  "player2": {
    "rating": "87",
    "rarity": "rare"
}

我想要的是:

{
  "player": {
    "rarity": "super_rare"
  },
  "player2": {
    "rarity": "rare"
}