title: javascript: how to convert array to tuple
body: <p>I have strange requirement in which i am using javascript.</p>
  <p>I have json file from where i extract the values leaving keys. when i extract values I have them in array. <strong>I should change the array to tuple</strong></p>
  <p>in Python, we have and array and tuple concepts. But i am not sure about javascript.
  Can anyone help one this</p>
  <p>sample json</p>
  <pre><code>[ {a:1 , b:2}, {c: 3, D:4} ]
  </code></pre>
  <p>I am able to extract values for json array</p>
  <p>my result is :</p>
  <pre><code>[1, 2]
  </code></pre>
  <p>and i want it to be as</p>
  <pre><code> (1,2)
  </code></pre>
  <p>where i need to pass the (1,2) as arguments to java program</p>