I'm doing a API that receives a JSON and I need to get which tags are inside that JSON .
This is an example of JSON :
[{
"Notification": [{
"Channel": 4,
"Type": 1,
"Means": [{
"Number": 88888888,
"Code": 506
}],
"Contents": {
"Message": "This is a message",
"Audio": "URL"
}
}]
}]
In this case I need to get the Contents tags, that is, Message and Audio .
I tried to work with a code like this:
f.Notification.forEach(e =>{
console.log(e.Contents);
})
But that shows me everything and I just need the label ... Any ideas?