I have a javascript object that I would like to convert into an array of objects
{
"mongo": {
"status": true,
"err": ""
},
"redis": {
"status": true,
"err": ""
},
"rabbitmq": {
"status": true,
"err": ''
}
}
The expected output must be
[
"mongo": {
"status": true,
"err": ""
},
"redis": {
"status": true,
"err": ""
},
"rabbitmq": {
"status": true,
"err": ""
}
]
What is the correct way to achieve this with javascript code?
Thanks.