here is the code
var txt = '{"tblCommoHier":[ {"DEPT":[' + '{"DEPT":"100","DEPT_NAME":"Collectibles" },' + '{"DEPT":"105","DEPT_NAME":"Commodities" },' + '{"DEPT":"140","DEPT_NAME":"Souvenir" }]}]}';
var obj = eval ("(" + txt + ")");
I'm trying the code
obj.tblCommoHier.DEPT[1].DEPT
to reach out to the first element of the DEPT element under tblCommoHier but I keep getting error says not defined.
Can somebody please help me with this issue?