https://i.sstatic.net/BvAEx.png
I'm working with a JSON array and need to display the data in a table. My question is, how can I insert 'transactionData' inside the main object? Essentially, I want the object structure to be:
{
completeTime: "value",
createTime: "value2",
assigneeName:"value3",
assigneeMap:"value4"
}
Since this involves dealing with a JSON Array, I'm searching for a way to loop through the array and adjust each object as needed.
I can't rely on the original JSON array structure because the transactionData object is not static and its keys could change dynamically. Therefore, I don't want to hardcode specific values like assigneeMap or assigneeName that may vary. That's why I need to programmatically include any values present in the transactionData object into my main object.