# Validate Response

**URL:** <https://community.postman.com/t/validate-response/9200>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [November 23, 2019, 1:16pm UTC](https://community.postman.com/t/validate-response/9200 "2019-11-23T13:16:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackis166](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jackis166](https://community.postman.com/u/jackis166)\
**Post date:** [November 23, 2019, 1:16pm UTC](https://community.postman.com/t/validate-response/9200/1 "2019-11-23T13:16:52Z")

</div>

Hi folks

Will appreciate in advance any help

I am having the below response body

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [November 25, 2019, 9:39pm UTC](https://community.postman.com/t/validate-response/9200/2 "2019-11-25T21:39:45Z")

</div>

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');
});
```
