title: JavaScript - Sending javascript object as a hidden input field
body: <p>I have a JS Array of Objects as follows:</p>
  
  <pre><code>var tables = new Array();
  
  var table = new Object();
  
  table.no=1001;
  table.name="Table-1";
  tables.push(table);
  
  table.no=1001;
  table.name="Table-1";
  tables.push(table);
  </code></pre>
  
  <p>Now I need to send this <code>tables</code> object-array through a hidden field in a form. Can I directly assign the value of hidden field as <code>tables</code> object.</p>