# Need help extracting value from a response body

**URL:** <https://community.postman.com/t/need-help-extracting-value-from-a-response-body/58952>\
**Category:** Help Hub\
**Tags:** tests, scripts\
**Created:** [March 18, 2024, 11:39am UTC](https://community.postman.com/t/need-help-extracting-value-from-a-response-body/58952 "2024-03-18T11:39:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashishekhar710](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@shashishekhar710](https://community.postman.com/u/shashishekhar710)\
**Post date:** [March 18, 2024, 11:39am UTC](https://community.postman.com/t/need-help-extracting-value-from-a-response-body/58952/1 "2024-03-18T11:39:11Z")

</div>

Hi,  
I need help for below response, i need any specific value from below value, i tried but i am not getting, tried below code but it did not worked, please help me with this.

```auto
var response = pm.response.json;
var GETCLINET = response.number;
console.log(GETCLINET);

```

```auto
{
    "activityReference": null,
    "code": 0,
    "matchingPerson": null,
    "number": 1003908,
    "reference": null,
    "responseMessageList": null,
    "status": null,
    "statusName": null,
    "text": null
}

```

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [March 18, 2024, 11:51am UTC](https://community.postman.com/t/need-help-extracting-value-from-a-response-body/58952/2 "2024-03-18T11:51:12Z")

</div>

Hi @shashishekhar710.

Welcome to the Postman Community!

To be clear, you get the object in your question above as a response to your API request and you want to get any specific property from this object? Is this what you’re trying to achieve?

---

<div class="post-metadata">

**Author:** ![shashishekhar710](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@shashishekhar710](https://community.postman.com/u/shashishekhar710)\
**Post date:** [March 18, 2024, 12:07pm UTC](https://community.postman.com/t/need-help-extracting-value-from-a-response-body/58952/3 "2024-03-18T12:07:27Z")

</div>

{  
“activityReference”: null,  
“code”: 0,  
“matchingPerson”: null,  
“number”: 1003908,  
“reference”: null,  
“responseMessageList”: null,  
“status”: null,  
“statusName”: null,  
“text”: null  
}

yes, i got this response ND I need a specific property from this object.

---

<div class="post-metadata">

**Author:** ![shashishekhar710](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@shashishekhar710](https://community.postman.com/u/shashishekhar710)\
**Post date:** [March 18, 2024, 12:26pm UTC](https://community.postman.com/t/need-help-extracting-value-from-a-response-body/58952/4 "2024-03-18T12:26:48Z")

</div>

Now its working fine for me, i missed something that’s why i got that error.

thank you

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [April 17, 2024, 12:27pm UTC](https://community.postman.com/t/need-help-extracting-value-from-a-response-body/58952/5 "2024-04-17T12:27:33Z")

</div>

Closed on April 17, 2024, 12:27pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
