code: function(args) {
    if (!args || args.trim() === '') return;
  
    try {
      var formatted = args.trim().replace(/([\w\.]+)/g,'"$1"').replace(/" /g, '",');
      return JSON.parse('{' + formatted + '}');
    } catch(e) {
      console.log('Invalid argument format.');
    }
  
  }
docs: transforms this 'host:myhost.com user:god' into this: {host: 'myhost.com', user: 'god' }