title: Sending an array of objects to server via ajax (JQuery)
body: <p>I have a series of entries retrieved from an html table.  </p>
  
  <blockquote>
    <p>E.g. (1, 123), (1,234), (2, 134) …etc</p>
  </blockquote>
  
  <p>I want to send these via JQuery ajax call to the server but I am not sure how to create the corresponding json call.<br>
  How can I do this?  </p>
  
  <p>I don't know how to form the array.
  I know I should use something like:  </p>
  
  <pre><code>$.ajax({
    url: 'path/getdetails.html',
     data : {
         'a'     : value,
         'b'    : value,                                                                                                                                      
      }, 
      type: 'POST',
      dataType: 'json',
  </code></pre>