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": "",

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

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

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


    "json": null,

    "origin": "",

    "url": ""


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);




@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);

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