title: POST array data with javascript
body: <p>I'm trying to post some data to a http connector but cant figure out how i can post Array data...</p>
  
  <p>My data Looks like that:</p>
  
  <pre><code>var data = [{ 
      key:'myKey',
      keyName:'myKeyName',
      value:'value',
      valueName:'valueName' 
  }, { 
      key:'mySecondKey', 
      keyName:'mySecondKeyName',
      value:'secondValue',
      valueName:'secondValueName'
  }, ...and so on ];
  </code></pre>
  
  <p>I try to post it via Ajax like this:</p>
  
  <pre><code>$.ajax({
      type:   "POST",
      url:    url,
      data:   data,
      error:  function(){
          alert("Error");
      },
      success: function(){
          alert("OK");
      }
  });
  </code></pre>
  
  <p>The request Returns ok but when i look at the request data it Posts <code>undefined=value&amp;undefined=secondValue</code></p>
  
  <p>How can i solve this? I Need to save all those informations for configurations</p>
  
  <p>A simple post with just some keys and values like <code>key=value&amp;key2=value2</code> works like a charm. </p>