I need to get a component included in Structure Group metadata. To have this information in the page I include the template "Add inherited metadata to page" in the page template and I can see in the JSON the value of that metadata:
MetadataFields":{"promotion":{"Name":"promotion","Values":["tcm:47-129384"],"NumericValues":[],"DateTimeValues":[],"LinkedComponentValues":...
The problem that I have is when I try to get that information in the view:
${pageModel.meta["promotion"]}
It returns something like this: "org.dd4t.contentmodel.impl.ComponentImpl@64d12583"
I am using dxa 1.2 with Java.
How can I get the TCM of the component included in SG metadata? or how can I get the information of that component?