var dataLayer = window.dataLayer || []; var dataLayer = [{ 'some':'thing', 'products': [{ 'name': 'Gibson J-200', 'tuning': 'High-G', 'price': 449.75 },{ 'name': 'Fender Stratocaster', 'tuning': 'Drop-C', 'price': 1699 }], 'stores': ['Los Angeles', 'New York'], 'employee': {'name': 'Reggie'} }];
If you create a Data Element in DTM using array notations as the following figure, it returns default value configured as "DLJSDefault" instead of correct value "Gibson J-200":

While using the JavaScript Object Data Element type, Dynamic Tag Management does not support array notations.

return window.dataLayer["0"].products["0"].name;