title: json array: How to create new array elements?
body: <p>My aim is to get a json array like this one:</p>
  
  <pre><code>var args = [{ name: 'test', value: 1 }, { key: 'test2', value: 2}];
  </code></pre>
  
  <p>How can I get the below code to build up an array like the above one?</p>
  
  <pre><code>this.dependentProperties = []; //array
  function addDependentProperty(depName, depValue) {    
      dependentProperties.push(new Array(depName, depValue));
  } 
  </code></pre>
  
  <p>By using the push method I end up having a json notation like this one:</p>
  
  <pre><code>args:{[["test1",1],["test2",2]]}
  </code></pre>