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