# Verify the Email | AssertionError: expected undefined to deeply equal 'muhammadyousif557@gmail.com'

**URL:** <https://community.postman.com/t/verify-the-email-assertionerror-expected-undefined-to-deeply-equal-muhammadyousif557-gmail-com/30984>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [December 23, 2021, 2:09pm UTC](https://community.postman.com/t/verify-the-email-assertionerror-expected-undefined-to-deeply-equal-muhammadyousif557-gmail-com/30984 "2021-12-23T14:09:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MuhammdYousif](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@MuhammdYousif](https://community.postman.com/u/MuhammdYousif)\
**Post date:** [December 23, 2021, 2:09pm UTC](https://community.postman.com/t/verify-the-email-assertionerror-expected-undefined-to-deeply-equal-muhammadyousif557-gmail-com/30984/1 "2021-12-23T14:09:51Z")

</div>

Hello,

I am trying to validate that my email is the same or not in attribute but it giving me the error.

 ![Capture](https://us1.discourse-cdn.com/getpostman/original/3X/4/c/4c2b0e86fc709ff4d4efb2d25ea019937af28aa8.png)

---

<div class="post-metadata">

**Author:** ![bbahadur](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bbahadur](https://community.postman.com/u/bbahadur)\
**Post date:** [December 24, 2021, 9:41am UTC](https://community.postman.com/t/verify-the-email-assertionerror-expected-undefined-to-deeply-equal-muhammadyousif557-gmail-com/30984/2 "2021-12-24T09:41:16Z")

</div>

Hey @MuhammdYousif 👋 Welcome to the community 🥳

Seems like an issue with jsonData.email, could you try and check the response in Console log?  
try:

```auto
console.log(jsonData)
//or
console.log(pm.resonse.json())

```

and then check the email property.

---

<div class="post-metadata">

**Author:** ![MuhammdYousif](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@MuhammdYousif](https://community.postman.com/u/MuhammdYousif)\
**Post date:** [December 24, 2021, 11:19am UTC](https://community.postman.com/t/verify-the-email-assertionerror-expected-undefined-to-deeply-equal-muhammadyousif557-gmail-com/30984/3 "2021-12-24T11:19:36Z")

</div>

Hello @bbahadur ,  
Thanks for supporting. I am attaching a snapshot of my Console. Could you understand what I need?

 ![Capture2](https://us1.discourse-cdn.com/getpostman/original/3X/4/0/407239bbd2338b86fbed4602e9f901901bb1c57a.png)

---

<div class="post-metadata">

**Author:** ![bbahadur](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bbahadur](https://community.postman.com/u/bbahadur)\
**Post date:** [December 24, 2021, 11:57am UTC](https://community.postman.com/t/verify-the-email-assertionerror-expected-undefined-to-deeply-equal-muhammadyousif557-gmail-com/30984/4 "2021-12-24T11:57:06Z")

</div>

So as you see, the response object has the properties ‘status’, ‘message’ and ‘data’  
And in ‘data’ we can find the email,

So just update you jsonData variable as:

```auto
var jsonData = pm.response.json().data

```

then your test script should work!

Good luck 🙂

---

<div class="post-metadata">

**Author:** ![MuhammdYousif](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@MuhammdYousif](https://community.postman.com/u/MuhammdYousif)\
**Post date:** [December 27, 2021, 8:02am UTC](https://community.postman.com/t/verify-the-email-assertionerror-expected-undefined-to-deeply-equal-muhammadyousif557-gmail-com/30984/5 "2021-12-27T08:02:23Z")

</div>

> [@bbahadur](#):
>
> `json`

@bbahadur thanks. It’s working for me.  
I have a few queries related to the Postman.  
How can I send the value of the email parameter or parameters in postman?
