# In postman tests, How to assert the response parameter which as special chars in it

**URL:** <https://community.postman.com/t/in-postman-tests-how-to-assert-the-response-parameter-which-as-special-chars-in-it/46357>\
**Category:** Help Hub\
**Tags:** tests, variables, json\
**Created:** [April 14, 2023, 7:51am UTC](https://community.postman.com/t/in-postman-tests-how-to-assert-the-response-parameter-which-as-special-chars-in-it/46357 "2023-04-14T07:51:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinna92](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@chinna92](https://community.postman.com/u/chinna92)\
**Post date:** [April 14, 2023, 7:51am UTC](https://community.postman.com/t/in-postman-tests-how-to-assert-the-response-parameter-which-as-special-chars-in-it/46357/1 "2023-04-14T07:51:58Z")

</div>

I’m using postman tests section to automate the APIs

If the response parameter is something like this `"currency": "USD",`, then we assert this by `pm.expect(jsonResponse.currency, 'USD');`

But if the response parameter is something like this `"super-card.DCC": "false",`, in which key has `-`, `.(dot)` in it.  
Then asserting like this `pm.expect(jsonResponse.postingAttributes.super-card.DCC, false);` is not working.

Its failing with ` ReferenceError: card is not defined`

Screenshot for reference:

 ![Screenshot 2023-04-14 at 1.13.16 PM](https://us1.discourse-cdn.com/getpostman/original/3X/7/2/725d3a6f5e8d08d34b47b59f3bb4b7f58ab61b5b.png)

Can anybody help me here?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [April 14, 2023, 10:19am UTC](https://community.postman.com/t/in-postman-tests-how-to-assert-the-response-parameter-which-as-special-chars-in-it/46357/2 "2023-04-14T10:19:36Z")

</div>

dot notation won’t work as the element has a dot in it, so you can use bracket notation instead to target the element. You can mix the two when targetting elements.

```auto
console.log(jsonResponse.postingAttributes["super-card.DCC"]);

```

[Property accessors - JavaScript | MDN (mozilla.org)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_Accessors)
