Hi Christy,
We have talked to the engineering team and they are saying that there is a particular way in which we can represent path as an array in a JS object type for Data Elements. Please see the following content for more details.
Complex JSON object containing Arrays
By default in JavaScript if you want to extract userName value then you would use simple javascript syntax.
In DTM it is different. If you want to create a data element to extract userName value from a complex Json object using Array then you will have to use-
Example of rule :
for this Path- digitalData.user[0].profile[0].profileInfo.userName
you have to use a path like this -
digitalData.user.0.profile.0.profileInfo.userName
Thanks & Regards
Parit Mittal