title: How to create JSON object using jQuery
body: <p>I have a JSON object in below format:</p>
  
  <pre><code>temp:[
          {
             test:'test 1',
             testData:  [ 
                         {testName: 'do',testId:''}
                           ],
             testRcd:'value'                             
          },
          {
              test:'test 2',
             testData:  [
                              {testName: 'do1',testId:''}
                           ],
             testRcd:'value'                           
          }
        ],
  </code></pre>
  
  <p>How can i create JSON object in jquery for above format. I want to create a dynamic JSON object.</p>