Below is a JSON object structure that I am working with:
{
"db": {
"name": "db",
"connector": "memory"
},
"MySql": {
"host": "localhost",
"port": 3306,
"database": "users",
"username": "root",
"password": "",
"name": "MySql",
"connector": "mysql"
},
"postgreDS": {
"host": "localhost",
"port": 1234,
"database": "abc",
"username": "postgres",
"password": "abc",
"name": "postgreDS",
"connector": "postgresql"
}
From the above JSON object, I am looking to extract the following keys:
{"db", "MySql", "postgreDS"}
I am seeking guidance on how to extract this information using JavaScript and also how to access the subkeys along with their respective values.