title: how to push an object like this in jquery?
body: <p>may I know how to push <code>var obj= [{}]</code> in <code>.each</code>? for example like this.</p>
  
  <pre><code> $.each(maintasks_row, function(index, maintasks_val) { 
                  obj.push([{
                      "name" : maintasks_val.task_name,
                      "desc" : "",
                      "values" : [{
                          "from" : "/Date("+maintasks_val.time_start+")/",
                          "to" : "/Date("+maintasks_val.time_end+")/",
                          "label": maintasks_val.task_name,
                          "customClass" : "ganttRed"
                      }]
                  }]);
              }); 
  </code></pre>
  
  <p>I'm using this for <code>$(".gantt").gantt({source: obj});</code> </p>
  
  <p>On <a href="http://mbielanczuk.com/jquery-gantt/" rel="nofollow">this site</a> the <code>var data</code> is <code>[{}]</code> is this an object? and how can I insert it?</p>
  
  <p>thank you</p>