In NodeJS,JavaScript, I have a JSON that looks like this:
console.log(object1.Tags)
[
{ Key: 'branch', Value: 'master' },
{ Key: 'env', Value: 'staging' },
{ Key: 'Name', Value: 'host-number-137' },
{
Key: 'DNSalt',
Value: 'name.of.dns'
},
{ Key: 'env_role', Value: 'dev' },
{ Key: 'role', Value: 'app' },
{ Key: 'userId', Value: 'U123456789' }
]
I'm trying to get the value of the key that holds DNSalt
but I can't seem to do it.
In NodeJS/JavaScript, is it possible to get the value of the key called "DNSalt" (AKA name.of.dns
)?
Thanks ahead!