# How to check JSON Object with special characters

**URL:** <https://community.postman.com/t/how-to-check-json-object-with-special-characters/41103>\
**Category:** Help Hub\
**Tags:** variables, json\
**Created:** [November 15, 2022, 3:19am UTC](https://community.postman.com/t/how-to-check-json-object-with-special-characters/41103 "2022-11-15T03:19:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gan\_Ceann](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@Gan\_Ceann](https://community.postman.com/u/Gan_Ceann)\
**Post date:** [November 15, 2022, 3:19am UTC](https://community.postman.com/t/how-to-check-json-object-with-special-characters/41103/1 "2022-11-15T03:19:29Z")

</div>

Hi all,

i want to access special character (area\_code and blood\_type)

> {  
> “timestamp”: 1668480108,  
> “datas”: {  
> “id”: “12345”,  
> “name”: “john doe”,  
> “address”: “avenue 12st”,  
> “area/code”: “001/009”,  
> “gender”: “Male”,  
> “blood\_type”: “-”,  
> },  
> “id”: “135ae3”,  
> }

_I’ve already tried_:

var response = pm.response.json();

pm.test(“json have spesific response”,() =\>{  
pm.expect(response.datas.area/code).to.eql(“001/009”);  
pm.expect(response.data.blood\_type).to.eql(“-”);  
});

---

<div class="post-metadata">

**Author:** ![mjhosawa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mjhosawa/32/13914_2.png) [@mjhosawa](https://community.postman.com/u/mjhosawa)\
**Post date:** [November 15, 2022, 4:08am UTC](https://community.postman.com/t/how-to-check-json-object-with-special-characters/41103/2 "2022-11-15T04:08:17Z")

</div>

Try this:

```auto
var response = pm.response.json();
pm.test("JSON response",() => {
    pm.expect(response.datas['area/code']).to.eql("001/009");
    pm.expect(response.datas['blood_type']).to.eql("-");
});

```
