I am very new to Postman. I want to compare JSON body object response.
json_response = JSON.parse(responseBody);
x=json_response.counter
pm.expect(x).to.equal("400");
It gives me 400 value of that corresponding 'counter' (or '400' Value of Key 'counter')
But I would like to compare 'counter' to 'counter' itself. (cases like, Counter, CounTer, etc.)
{
"counter": 400,
"validInMinutes": 660,
"currentCounter": 322,
}
Basically, I want to test that received all JSON Keys are equal to what I am looking for! Is there an easy way to do it?