How to push an object into an object, as a variable

Hello,

I am trying to create a result JSON object array variable that has another object with a variable name 'company_data'.

How do i push into Result such that company_data shows as company data?

Result [
{
company_data:{
'name': 'Apple',
'address': '520, San francisco'
}
'resultpath1': 'xyz'
}

Currently when i push company data variable into Result [{item in a loop}] i get:
Result [
{
{
'name': 'Apple'
'address': '520, San francisco'
}
'resultpath1': 'xyz'
}
Other
2 replies