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