title: Sending a javascript object to a server
body: <p>My HTML page allows the user to create a list of items that get appended to a table. For simplicity lets say each item has 2 things. 1) a description and 2) a price. I also add this list of items into an object that I want to submit to a server. An example of an object created with 3 items would looks like</p>
  
  <pre><code>myObject = {
      "Item1":["description1", "price1"],
      "Item2":["description2", "price2"],
      "Item3":["description3", "price3]
  }
  </code></pre>
  
  <p>What is the correct way to submit this data to the server. The only way I am sure of is to append this object to a hidden form. Is there another way.</p>
  
  <p>I am using nodejs with an expressjs framework if that helps. I then input this into a MySQL database by iterating over the object. Thank you.</p>