# Pm.Response doesn\`t match with Response Body

**URL:** <https://community.postman.com/t/pm-response-doesn-t-match-with-response-body/31943>\
**Category:** Help Hub\
**Tags:** variables, json, response\
**Created:** [January 27, 2022, 11:33am UTC](https://community.postman.com/t/pm-response-doesn-t-match-with-response-body/31943 "2022-01-27T11:33:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sserna0](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@sserna0](https://community.postman.com/u/sserna0)\
**Post date:** [January 27, 2022, 11:33am UTC](https://community.postman.com/t/pm-response-doesn-t-match-with-response-body/31943/1 "2022-01-27T11:33:39Z")

</div>

Hi,

I need your help, I’m running a POST request and try to get some of the fields in the response to a environment variable and for some magical reason, the value retrieved by pm.response when converting to json is not the one retrieved by the Server

In attached screenshot you can see the different values I’m getting

In red the response convert to Json  
in blue the response in text  
In green the response retrieved by the Server

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/1/14bc1a851c2ee714a83ccc308a683f275180f86e.jpeg)

Could you please advice why the sessionId value retrieved by postman is different when converting to Json???

Thanks

---

<div class="post-metadata">

**Author:** ![jrnp97](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jrnp97](https://community.postman.com/u/jrnp97)\
**Post date:** [December 13, 2022, 9:45am UTC](https://community.postman.com/t/pm-response-doesn-t-match-with-response-body/31943/2 "2022-12-13T09:45:49Z")

</div>

Ey 👋 since nobody answer you, and I was facing the same problem recently

I noticed, it was something related with the `.json()` function.

specifically a JS problem a not a Postman problem, it’s related and how JS parse handle big integer numbers.

 ![Screen Shot 2022-12-13 at 6.43.49 AM](https://us1.discourse-cdn.com/getpostman/original/3X/6/5/65d201a2d30904b8d319929085b9b5cccd897dde.png)

if you use the `.text()` function you’ll get the correct value, but you should use regex to get the number

Just answering this here, maybe anybody faces the same problem in the future
