La création de hachage tableau dans Google Apps Script

J'ai essayé de travailler avec Trello et les Google Apps Script de cette semaine. Je suis en train de créer un tableau de hachages que je peux utiliser pour charger la feuille de calcul. Google apps script n'est pas, comme le typique du code javascript de la création de tables de hachage. J'ai regardé les docs, mais ils n'ont rien comme les hachages...ils disent:

 var object = [];
 var object1 = {};
 object.push(object1);

Cela ne marchera pas parce que je suis essentiellement d'essayer de faire quelque chose comme:

var hash={name: , label: };
var n= someNumber;
var l= someLabel
var hash.push(name: n, label: l);

Essentiellement, qui est le code que j'ai droit. Mais ici, c'est l'ensemble de ma fonction:

  function getData(){
  var list={};
  //get the list of delivered cards from Trello
  var listRequest = authorizeToTrello(); //get authorization
  var result = UrlFetchApp.fetch("https://trello.com/1/lists/4fea3a2c3a7038911ebff2d8/cards",
  listRequest);//fetch list
  var listOfCards = Utilities.jsonParse(result.getContentText());//Google app utility format json

  //outer loop to iterate through list of Cards
  for(var i=0; i < listOfCards.length; i++){
     var cardId = listOfCards[i].id; //get the id of a single card
     var l = listOfCards[i]["label"]; //get the label for the our structure

  //get a json object for a single card within the list of cards iteration 
  var cardRequest = authorizeToTrello();
  var getCard = UrlFetchApp.fetch("https://trello.com/1/cards/" + cardId + "/actions", cardRequest); 
  var singleCard = Utilities.jsonParse(getCard.getContentText());

 //inner loop to iterate the single cards JSON objects

  for(var j=0; j < singleCard.length; j++) {
    if(singleCard[j].data != undefined && singleCard[j].data.listAfter != undefined)
    {
      var str = singleCard[j]["data"]["listAfter"]['name'];
      if(str === "Delivered Q3 2012"){
          var n = singleCard[j]['memberCreator']['fullName'];
        }
     }
  }
    //push the data to list
    list.push(n,l);
  }

 return name, label; //return list for output
 }
InformationsquelleAutor Psyllex | 2012-09-29