This line: let X = this.appGlobal.GetNavigationLanguage().data;
retuns JSON as you can see below.

I want to take NAV.REPORTS.BMAIL.TITLE.
Translate code (NAV.REPORTS.BMAIL.TITLE) is dynamically created.
X.NAV.REPORTS.BMAIL.TITLE=> worksX['NAV']['REPORTS']['BMAIL']['TITLE']=> works
But keep in mind I have dynamically created translation code I need something like this:
let transCode = 'NAV.REPORTS.BMAIL.TITLE';
console.log(X[transCode]);
How I can achieve this?
transCodeby a.separator and then pick off the indeces as needed? If you're using other libraries, there are some good functions, like ramdajs.com/docs/#path.