# Parse JSON properties with reserved words

**URL:** <https://community.postman.com/t/parse-json-properties-with-reserved-words/4488>\
**Category:** Help Hub\
**Tags:** faq\
**Created:** [March 13, 2019, 4:23pm UTC](https://community.postman.com/t/parse-json-properties-with-reserved-words/4488 "2019-03-13T16:23:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyriellehada](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/cyriellehada/32/1433_2.png) [@cyriellehada](https://community.postman.com/u/cyriellehada)\
**Post date:** [March 13, 2019, 4:23pm UTC](https://community.postman.com/t/parse-json-properties-with-reserved-words/4488/1 "2019-03-13T16:23:55Z")

</div>

Some property names are **reserved** for specific uses (e.g. `language`, `global`).  
Even if the JSON parsing is correct, using reserved words may return the following response:  
`TypeError | cannot read property 'global' of undefined`.

One way to work around this is to coerce it into a string and use bracket notation.

**Example:**

`jsonData.data.settings.global.language.language_id`

Replace the snippet with

`jsonData.data.settings['global.language.language_id']`

---

<div class="post-metadata">

**Author:** ![shamasis](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/shamasis/32/53_2.png) [@shamasis](https://community.postman.com/u/shamasis)\
**Post date:** [May 1, 2019, 6:11am UTC](https://community.postman.com/t/parse-json-properties-with-reserved-words/4488/2 "2019-05-01T06:11:21Z")

</div>

I usually access those using string representation like `jsonData.data.settings['global’].language.language_id`

However, if response data is not guaranteed to match, then any form of multi level object access (like a.b.c) would error out as cannot find blah of undefined. In such cases, I prefer using `_.get(jsonData, ‘data.settings.global.language.language_id')` lodash utility function to do the job for me without raising any error.
