I'm working on a fusion scenario where I am setting the metadata properties to my custom component dynamically. Below is the high level structure of a single collection of JSON data.
I need to get properties from myContentAttributes collection and create a structure like this:
"mycustomComponent": {
"item0": {
"propName": "propA",
"propValue": "valA"
},
"item1": {
"propName": "propB",
"propValue": "valB"
},
"item2": {
"propName": "propC",
"propValue": "valC"
},
.......
}
I am able to get the property names by iterating through keys of myContentAttributes but not sure how to get the values of corresponding properties.
Thank you in advance!