I have an Object containing more objects that I want to iterate over. The structure is like this:
Eventually, I want to create an array where the key of the parent object points to the value in the child object's title column, so I can post later to some PHP script, i.e, I want:
BusinessJustification => 'titleValue'
Contract => 'titleValue'
...
But I am really struggling to actually loop through the array.
I have tried the following two methods, and while I can loop over the parent object, I seem to be struggling to get access to the values in the child, they just show as the index position, or undefined respectively.
for (var fields in this.postData) {
for (var columns in fields){
console.log(columns['title']);
}
}
for (var fields in this.postData) {
for (var columns in fields){
console.log(Object.entries(columns['title']));
}
}
Any help would be appreciated, as I am really scratching my head, and have tried a few things online.

columns['title'];only accesses the value in the property, it doesn't do anything with it.