title: dynamic column names using dynatable.js
body: <p>I am using dynatable.js to print my json data in table format.When i hard code the  with names as jdbc_driver_id and database_id the json data is printed correctly.But the json data received  each time is different with different names.I want different names inside  tag depending upon the data received from json.Please tell me a solution for my query.     </p>
  
  <p>/<strong>***************************JS FILE********************************</strong>/ </p>
  
  <pre><code>$(function(){
  //HERE I AM GETTING MY JSON RESPONSE AS KEY AND VALUE.I WANT THE  NAME INSIDE &lt;TH&gt; DYNAMICALLY SINCE MY JSON DATA RECEIVED IS DIFFERENT EACH TIME.//    
          json response is
          [{"database_id":"1","jdbc_driver_id":"2"},
          {"database_id":"2","jdbc_driver_id":"1"},
          {"database_id":"3","jdbc_driver_id":"4"},
          {"database_id":"4","jdbc_driver_id":"1"}]
          //SO IN THE response I AM GETTING THE ABOVE JSON DATA//                 
      var response = jQuery.parseJSON(response);                                  
      var dynatable =$('#my-final-table').dynatable({                 
          table: {
              defaultColumnIdStyle: 'underscore'
          },
          dataset: {
              records: response//HERE IS THE JSON RESPONSE//
          }
      });
  });
  </code></pre>
  
  <p>/<strong>************************JSP PAGE********************************</strong>/</p>
  
  <pre><code>//I WANT DYNAMIC NAMES INSIDE THE TH TAG//  
  &lt;table id="my-final-table"&gt;             
      &lt;thead&gt; 
          &lt;th&gt;jdbc_driver_id&lt;/th&gt;                                                                                   
          &lt;th&gt;database_id&lt;/th&gt;                                                                            
      &lt;/thead&gt;
      &lt;tbody&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;                                                                                        
  </code></pre>