0

Relatively new here, and relatively new with Python, API, JSON etc..

If I have a JSON response from an API call that look like this:

{
    "data": {
        "type": "regulations",
        "id": "1234",
        "attributes": {
            "name": "My Own Regulations",
            "description": "",
            "created_at": "2021-10-20T15:27:57.834Z",
            "updated_at": "2021-10-20T15:27:57.834Z",
            "external_id": null,
            "source": null,
            "locked": false
        }
    }
}

And I am handling this in Python, how do I iterate the data to remove, say, "created_at" from the JSON?

Thanks! And sorry in advance if I am not posting this in the right way etc.

Jab
  • 26,853
  • 21
  • 75
  • 114
Alex F
  • 23
  • 4

0 Answers0