Postman - how to get attribute values and setEnvironment them?

Hello everyone,

I have in my body return :

{

    "status": "OK",

    "msg": "",

    "data": {

        "events": {

            "1-7396679c-4597-4253-9b8e-f135017c791c": {

                "event": "verbose"

            },

            "2-ee86609a-5c86-4662-a94d-9d4c0e3c836d": {

                "event": "verbose"

            },

            "3-49caf28d-5d68-4606-b487-0284d05ecbc0": {

                "event": "verbose"

            },

            "4-c481162e-c467-44aa-bdb2-b0c34db0d04a": {

                "event": "verbose"

            },

            "5-d1525f4c-b205-46d6-8676-de0a97b40917": {

                "event": "verbose"

            },

            "6-e4be823c-dd06-4245-ad18-59549ef6092f": {

                "event": "verbose"

            },

            "7-a003a71c-f665-4607-a9bd-ebeeaf683a51": {

                "event": "verbose"

            },

            "8-caa4dfc4-8139-4977-bc45-2ea33ecb8226": {

                "event": "verbose"

            },

            "9-0998fa14-7504-406d-ac5b-0df70dd68a11": {

                "event": "verbose"

            },

            "10-859eae4f-3e0f-49a4-a8e3-dc55a2931afb": {

                "event": "verbose"

            }
}
  1. How can I setEnvironmentVariable about the first events attribute (ā€œ1-7396679c-4597-4253-9b8e-f135017c791cā€). I didnt find any information because its always about setting the value and not the attribute.

  2. How, for each attribute events value, setEnvironmentVariable (like a while for all the events attributes)

Thanks for your answer