# Response.json returns null value

**URL:** <https://community.postman.com/t/response-json-returns-null-value/8906>\
**Category:** Help Hub\
**Created:** [November 11, 2019, 9:01am UTC](https://community.postman.com/t/response-json-returns-null-value/8906 "2019-11-11T09:01:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![theToncheff](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@theToncheff](https://community.postman.com/u/theToncheff)\
**Post date:** [November 11, 2019, 9:01am UTC](https://community.postman.com/t/response-json-returns-null-value/8906/1 "2019-11-11T09:01:58Z")

</div>

So, as title said, I’m trying to retrieve a certain value from the response body, however what I get right now is a null value for some reason.  
Is it because of “_The console only shows bodies smaller than 10 KB in size. To view the complete body, inspect it in the Builder window._” ?  
I’m using console.log to check the json response and the value is real, however if i try to set it to a variable, it returns as null?

---

<div class="post-metadata">

**Author:** ![theToncheff](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@theToncheff](https://community.postman.com/u/theToncheff)\
**Post date:** [November 11, 2019, 9:33am UTC](https://community.postman.com/t/response-json-returns-null-value/8906/2 "2019-11-11T09:33:44Z")

</div>

Also, the body seems to start with “0:(…)”  
How do i go around to call it? pm.response.json().0.id ?  
it does not work with numbers

 ![need](https://us1.discourse-cdn.com/getpostman/original/3X/9/0/908b34b9a8e1c4c6a5b466b904669d8057654a6f.png)

---

<div class="post-metadata">

**Author:** ![suesmith](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/suesmith/32/2307_2.png) [@suesmith](https://community.postman.com/u/suesmith)\
**Post date:** [November 11, 2019, 10:27am UTC](https://community.postman.com/t/response-json-returns-null-value/8906/3 "2019-11-11T10:27:04Z")

</div>

Hi @theToncheff, your response looks like an array—the first index will be 0. If you want to extract a value from the first item in the array, you’ll need to use the js array syntax with the index e.g. `[0]`.

---

<div class="post-metadata">

**Author:** ![theToncheff](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@theToncheff](https://community.postman.com/u/theToncheff)\
**Post date:** [November 11, 2019, 10:34am UTC](https://community.postman.com/t/response-json-returns-null-value/8906/4 "2019-11-11T10:34:00Z")

</div>

Yes, thank you. It worked
