Need to validate items in a json node

{

    "args": {

        "dataset1": "abcsdsd",

        "dataset2": "124"

    },

    "data": "{\r\n    \"itemName\":kkkkkk\r\n}",

    "files": {},

    "form": {},

    "headers": {

        "Accept": "application/json",

        "Accept-Encoding": "gzip, deflate, br",

        "Content-Length": "27",

        "Content-Type": "text/plain",

        "Host": "httpbin.org",

        "Postman-Token": "45aad92e-9e22-483e-a25c-0388395e2673",

        "User-Agent": "PostmanRuntime/7.26.5",

        "X-Amzn-Trace-Id": "Root=1-5f5cf177-bfd996d87d5fc4a8d20693a8"

    },

    "json": null,

    "origin": "112.134.96.232",

    "url": "http://httpbin.org/post?dataset1=abcsdsd&dataset2=124"

}

Above is the response I’m getting.
I need to validate the dataset2’s content at the args node.How am i going to do that.
So far this is my code and it will get the all 2 values at args node.

pm.test("test 1", function () {

var  responseJson = JSON.parse(responseBody);

var list = (responseJson.args);

console.log(list);

});

;

@chathudagr8, Can you clearly state what you are trying to do here?

I assume that you need to verify the value in dataset2 note, please check if below snippet is useful.

var jsonData = JSON.parse(responseBody);
console.log(jsonData.args.dataset2);

pm.test(“dataset2 validation”, function () {

pm.expect(jsonData.args.dataset2).to.equal(“124”);

});