Below is the data structure:
{
bill: [
{ satisfy: 'true', comments: '' }
],
permission_title: [
{ satisfy: 'false', comments: '5' }
],
final_status: [
{ satisfy: 'true', comments: '' }
]
}
I want to transform it into:
{
bill: { satisfy: 'true', comments: '' },
permission_title: { satisfy: 'false', comments: '5' },
final_status: { satisfy: 'true', comments: '' }
}
What's the most efficient way to achieve this?