How to save a value from response as a environment variable

hello @danny-dainton,
I have one more question - I moved to next requests, and I tried to use similar structure in Test sections for a different request:

var jsonData = JSON.parse(responseBody);
pm.environment.set("eventId", jsonData["event_id"]);

but currently, instead of event_id in variable value I’m getting null, any idea why? This is the response of the request:

{
    "events": [
        {
            "event_id": "23423werwer234",
            "event_location": "theatre"
	    }
    ]
}