# Creating assertion to "numeric" object

**URL:** <https://community.postman.com/t/creating-assertion-to-numeric-object/25315>\
**Category:** Help Hub\
**Created:** [June 29, 2021, 1:22pm UTC](https://community.postman.com/t/creating-assertion-to-numeric-object/25315 "2021-06-29T13:22:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 30, 2021, 12:09am UTC](https://community.postman.com/t/creating-assertion-to-numeric-object/25315/2 "2021-06-30T00:09:52Z")

</div>

@lunar-module-meteor3 Welcome to the Community 🥳

Yes, I feel you… You need to think of using a bracket notation to access the elements instead of dot notation.

You can see the [similar thread](https://community.postman.com/t/extract-value-from-a-json-response-body-via-the-test-scripts/11835/5) here to learn more about it.

In your case it should be something like,

```auto
pm.test("Value is as expected", function () {
    var jsonData = pm.response.json();
    pm.expect(jsonData['8888'][0]['name']).to.eql("Jerzy");
    pm.expect(jsonData['8888'][0]['Id']).to.eql(10);
});

```

If this is just a subset of response, please update the path to reach the elements! I hope this is helpful 😊

---

_[View the full topic](https://community.postman.com/t/creating-assertion-to-numeric-object/25315)._
