Drush vset array value

Public

How to set a variable to an array value via drush - source http://drupal.org/node/664452#comment-5078776

Get raw version
bash
  1. php -r "print json_encode(array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'mailto', 'irc', 'ssh', 'sftp', 'webcal', 'rtsp', 'skype'));" | drush vset --format=json filter_allowed_protocols -