Accessing json objects

Hi,

I’m trying to access a json object which is like this SHIPTO.MAILADDRESS.ADDRESS1 . I’ve tried

jsonObject.response.operation.result.data.sodocumententry[0].SHIPTO.MAILADDRESS.ADDRESS1

I get the error TypeError: Cannot read property ‘MAILADDRESS’ of undefined on console.log

Any help would be appreciated.

Thanks in advance :slight_smile:

Hey @vjjohnson04

Would this help?

jsonObject.response.operation.result.data.sodocumententry[0]['SHIPTO.MAILADDRESS.ADDRESS1']

Thanks this worked fine :slight_smile:

1 Like