How can I get the values from this associative array in JavaScript?
I just need the email addresses and not the labels.
(
{
office = ("[email protected]");
home = ("[email protected]");
work = ("[email protected]");
},
{
home = ("[email protected]");
}
)
UPDATE: Prefered output in JSON would be:
{
"data": [
{
"email": "[email protected]"
},
{
"email": "[email protected]"
},
{
"email": "[email protected]"
},
{
"email": "[email protected]"
}
]
}
Thankful for all input!