# Trouble reading nested object property

**URL:** <https://community.postman.com/t/trouble-reading-nested-object-property/25305>\
**Category:** Help Hub\
**Created:** [June 29, 2021, 10:05am UTC](https://community.postman.com/t/trouble-reading-nested-object-property/25305 "2021-06-29T10:05:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjaikins](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pjaikins/32/9036_2.png) [@pjaikins](https://community.postman.com/u/pjaikins)\
**Post date:** [June 29, 2021, 10:05am UTC](https://community.postman.com/t/trouble-reading-nested-object-property/25305/1 "2021-06-29T10:05:14Z")

</div>

Folks,  
I am trying to extract a couple of object values from a JSON response containing an array of phone numbers with various attributes. I can extract the phone number, but I am getting the error:

“TypeError: Cannot read property ‘firstName’ of undefined”

 ![Image 2021-06-29 at 20.00.06](https://us1.discourse-cdn.com/getpostman/original/2X/2/2f33bc5b4d7fe9198395155ae2d75627e6aae53e.jpeg)

I already tried “firstName: data.owner[0].firstName” with the same result.

I want to get to the point of being able to write the output to a file so I can get a CSV output of the numbers and the first/last names.

Any suggestions?
