So i want to get a specific key value by passing key as a parameter to a function.
so from below code given the key can be anything.
so as per the parameter i want to find value respectively.
I have also parsed it as json(it is already a json object)
Here is my json file :
{
request_id: '0f8e1864-1b49-734c-b0b6-094c6dfe433c',
lease_id: '',
renewable: false,
lease_duration: 600,
data: {
aws_access_key_id: '***',
aws_secret_access_key: '***',
cls_pepper: '****',
ssl_password: '****',
wildcard_ssl_password: '***'
},
wrap_info: null,
warnings: null,
auth: null
}
function get(secret){
secrets = JSON.parse(JsonObject);
**dont know the rest code**
}