I'm trying to transform an object that looks like this:
{
user[id]: 1,
user[name]: 'Lorem',
money: '15.00'
}
Into the following structure:
{
user: {
id: 1,
name: 'Lorem',
},
money: '15.00'
}
Can anyone help me accomplish this transformation?