'How to compare 2 JSON strings and store what changed in a variable Python

I have a JSON string that is a response to a GET request:

[
  {
    "symbol": "cosmic2",
    "name": "Cosmic Condos",
    "description": "Some cosmic condos",
    "image": "https://bafybeif3tacmhinsivylzrrxskwshwufysst3s6np3y2ar3qagpmliw374.ipfs.dweb.link/72.png?ext=png",
    "twitter": "",
    "discord": "",
    "website": "",
    "categories": []
  }
]

And after a while it becomes :

[
  {
    "symbol": "cosmic2",
    "name": "Cosmic Condos",
    "description": "Some cosmic condos",
    "image": "",
    "twitter": "",
    "discord": "",
    "website": "",
    "categories": []
  },
  {
    "symbol": "test_lp_1",
    "name": "Test Launchpad 1",
    "description": "3 Stages",
    "image": "",
    "categories": [
      "launchpad"
    ]
  }
]

How do I store the second part that was added in a variable and later work with it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source