Need to extract entire database_schema_detail
object from the below json body for postman.Any suggestion?
Json Body
"created_operator": "0",
"database": "postgres",
"database_schema_detail": {
"accounts": [
"employer_id",
"id",
"role_id"
],
"awsdms_ddl_audit": [
"c_ddlqry",
"c_key",
"c_name",
"c_oid",
"c_schema",
"c_tag",
"c_time",
"c_txn",
"c_user"
],
"new_accounts": [
"employer_id",
"id",
"role_id"
]
},
"dms_endpoint_id": "test0700362021-10-07t13-19-36-331734",
"engine": "postgresql",
"engine_display_name": "PostgreSQL",
Parse the JSON and access the property:
let responseBody = JSON.parse(body);
console.log(responseBody.database_schema_detail);