# Parse Json Variable object

**URL:** <https://community.postman.com/t/parse-json-variable-object/28770>\
**Category:** Help Hub\
**Tags:** tests, json\
**Created:** [October 15, 2021, 12:37pm UTC](https://community.postman.com/t/parse-json-variable-object/28770 "2021-10-15T12:37:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![automationQA](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@automationQA](https://community.postman.com/u/automationQA)\
**Post date:** [October 15, 2021, 12:37pm UTC](https://community.postman.com/t/parse-json-variable-object/28770/1 "2021-10-15T12:37:16Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:

Hello, can anyone help me please i have to parse response body (json), but the problem that the object is a variable : 15556 is a variable  
{  
“15556”: {  
“company”: “”,  
“type”: “”  
}  
}

_I’ve already tried_:  
var jsonData = pm.response.json();

```
console.log(jsonData.15556); and 

```

console.log(jsonData.“15556”);

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [October 15, 2021, 2:18pm UTC](https://community.postman.com/t/parse-json-variable-object/28770/2 "2021-10-15T14:18:58Z")

</div>

@automationQA Welcome to the community 🥳

Please try to access using [bracket](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) notation.

```auto
console.log(jsonData[‘15556’]);

```

---

<div class="post-metadata">

**Author:** ![automationQA](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@automationQA](https://community.postman.com/u/automationQA)\
**Post date:** [October 15, 2021, 2:23pm UTC](https://community.postman.com/t/parse-json-variable-object/28770/3 "2021-10-15T14:23:32Z")

</div>

@bpricilla thanks it’s working 😊
