How to access a dynamic variable (always changes) in response used for error messaging

I have the response that is used for all our error messages and the one variable that contains the error message has a dynamic label. Wondering how I can access to display the error only.

Response:
{
“type”: “dolore anim”,
“title”: “labore”,
“status”: -77902739,
“detail”: “non laborum ad consequat”,
“instance”: “Duis nisi”,
“errors”: {
"ex_c9": [
“mollit ad”,
“ad fugiat occae”
],
“ut90e”: [
“voluptate aliquip do laboris”,
“proident quis veniam tempor exercitation”
]
}
}

The variable that is bolded is what will change depending on the error.

In this screenshot the error is $.isSystem yet in another error it could be $.permissions.admin. I can print it on the console but would like to print it during the test run as a test.

Example:
pm.test(savedData, () =>{
“test script info”
});

I’ve already tried:
jsonData.errors.errors[0]
jsonData.errors.$

These come back with an undefined error.

let response = pm.response.json(),
savedData = JSON.stringify(response);
pm.collectionVariables.set(“savedData”, savedData);

console.log(savedData)
I have save it to a collection variable but again it is the entire error message with title, traceID, etc, listed when all I want is the errors.$.Variable value.

console.log(jsonData.errors)
When I try to use the jsonData.errors by itself I just get object, Object. So how can I access the $.variable object within the errors object?

Further examples of the response body:
ISSYSTEM EXAMPLE
{
“type”: “RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content”,
“title”: “One or more validation errors occurred.”,
“status”: 400,
“traceId”: “00-3603ece854ba810e51dce2fee2a17eb2-bda0d12f5bc6350a-00”,
“errors”: {
"$.isSystem": [
** “’,’ is an invalid start of a value. Path: $.isSystem | LineNumber: 3 | BytePositionInLine: 14.”**
]
}
}
PERMISSSIONS ADMIN EXAMPLE
{
“type”: “RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content”,
“title”: “One or more validation errors occurred.”,
“status”: 400,
“traceId”: “00-3d73c35fad206d282abc3f29bc778b27-35aa3e349280b9bb-00”,
“errors”: {
"$.permissions.admin": [
** “The JSON value could not be converted to System.Boolean. Path: $.permissions.admin | LineNumber: 5 | BytePositionInLine: 16.”**
]
}
}
Items bolded are what I want to capture and display in a test.

I was able to figure it out.

//Display error message for test results
let response = jsonData.errors
savedData = JSON.stringify(response);
pm.collectionVariables.set(“savedData”, savedData);

pm.test(savedData, () =>{
//Getting message to display
});

This can be closed.