Hi folks
Will appreciate in advance any help
I am having the below response body
Hi folks
Will appreciate in advance any help
I am having the below response body
I would do something like this:
pm.test("Validate person", () => {
const response = pm.response.json();
const person = response.find(person => person.id === 5);
pm.expect(person).to.be.an('object');
pm.expect(person.name).to.eql('John Smith');
});