Flatten the index json data

[

"code"
{
1
},
"foo"{
"bar"
},
"foo1"
{
"number": 1,
"type": "In progrss",
"submit_time": "2020-10-04
"id_type": 2153707,
"order_id": 1601849877,
"foo2": [
"xyz",
"qwe",
"yty"
],
"order_date": 19/09/2020,
"shipping_date": "2020-10-04",
"shipping_id": "89775555",
"tracking_id": "98876",

}
]

I want it like like this to flatten foo1
"number": 1,
"type": "in progrss",
"submit_time": "2020-10-04T16:17:33-0600",
"id_type": 2153707,
"order_id": 1601849877,
"order_date": 19/09/2020,
"shipping_date": "2020-10-04T16:17:57-0600",
"shipping_id": "89775555",
"tracking_id": "98876",
"order_id": 1601849877,
"foo2": [
"xyz",
"qwe",
"yty"
],

Do you have a question?