Matching string and displaying item values

My question:
I have below response body and I wanted to match the URL under dbCategorizedUrls, if the URL is matched then I want to display its “id”, “configuredName” and “dbCategorizedUrls” values.

Details:
Below is my response body:

{
        "id": "CUSTOM_01",
        "configuredName": "Category1",
        "urls":,
        "dbCategorizedUrls": [
            ".example1.com",
            ".example2.com",
        ],
        "customCategory": true,
    },
{
        "id": "CUSTOM_02",
        "configuredName": "Category2",
        "urls":,
        "dbCategorizedUrls": [
            ".example3.com",
            ".example4.com",
        ],
        "CustomCategory": true,
    }

I’ve already tried:

pm.test("The result is as follow:", function () {
    const responsevar = pm.response.json();
    pm.expect(pm.response.text()).to.include("example1");
    });

What I am looking for:

If pm.expect(pm.response.text()).to.include("example1"); is true
return ID = "id", category Name ="configuredName" and URLs = "dbCategorizedUrls"

Any help on this would be really appreciated.

Sorry we didn’t get to this sooner. This isn’t the experience we want for our users.

We’re closing out older posts to help keep the community organized and relevant. If this issue is still affecting you, please start a new topic with any updated details and we’ll be happy to help.