title: How to build JSON data in combination with form data
body: <p>Hi I need to build data in a JSON object and send through a ajax post, as a String.</p>
  
  <p>I need to send something in the following format:</p>
  
  <pre><code>{
   "myRequest": {
       "myRequestType": "updateStatus",
       "fields": [
           {
               "item1": "data1",
               "item2": "data2",
               "item3": "data3",
               "formUpdateField": "data4"
           }
       ]
   }
  }
  </code></pre>
  
  <p>I have a form table, which has a checkbox to select record(s) to send the update for. basically the send is to update a status of a record.</p>
  
  <p>Based on the above, I have access to item1, item2 and item3 data - this is non form data. I need to add this to a JSON object. I think I can just about do this. But my problem is, I need to then add the data that I have from the form too, to this JSON Object. </p>
  
  <p>I am able to get the data out of the form, but how to I add this to the JSON object I am building up?</p>
  
  <p>The other issue is that, you can select multiple records from the form table</p>
  
  <p>Any ideas how I can do this using JSON/jQuery etc?</p>