title: jQuery: Convert string with comma separated values to specific JSON format
body: <p>I've been losing hours over something that might be trivial:</p>
  
  <p>I've got a list of comma-separated e-mail addresses that I want to convert to a specific JSON format, for use with the Mandrill API (<a href="https://mandrillapp.com/api/docs/messages.JSON.html" rel="nofollow noreferrer">https://mandrillapp.com/api/docs/messages.JSON.html</a>)</p>
  
  <p>My string:</p>
  
  <pre><code>var to = 'bigbadwolf@grannysplace.com,hungry@hippos.com,youtalkin@to.me';
  </code></pre>
  
  <p>What (I think) it needs to be:</p>
  
  <pre><code>[
      {"email": "bigbadwolf@grannysplace.com"},
      {"email": "hungry@hippos.com"},
      {"email": "youtalkin@to.me"}
  ]
  </code></pre>
  
  <p>I've got a JSFiddle in which I almost have it I think:
  <a href="http://jsfiddle.net/5j8Z7/1/" rel="nofollow noreferrer">http://jsfiddle.net/5j8Z7/1/</a></p>
  
  <p>I've been looking into several jQuery plugins, amongst which: <a href="http://code.google.com/p/jquery-json" rel="nofollow noreferrer">http://code.google.com/p/jquery-json</a>
  But I keep getting syntax errors. </p>
  
  <p>Another post on SO suggested doing it by hand: <a href="https://stackoverflow.com/questions/4425289/javascript-associative-array-to-json">JavaScript associative array to JSON</a></p>
  
  <p>This might be a trivial question, but the Codecadamy documentation of the Mandrill API has been down for some time and there are no decent examples available.</p>