I have a JSON object like below
{
"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"
}
I need the following output from this object.
{"db", "MySql", "postgreDS"}
how should I extract the above information from whole JSON object in JavaScript. and how I will read the sub keys and there values.