title: Add table row dynamically with JSON
body: <p>I am having difficulty to add new table row with JSON.</p>
  
  <p><strong>Situation</strong></p>
  
  <p>Currently I am programming drag &amp; drop function. Once file uploaded, file information parse into JSON and return to the View page. What I want is that I want to add new table row dynamically with JSON file information.</p>
  
  <p><strong>Problem</strong>
  How should I fill in the double quotes part with JSON format?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var rowNode = table.row.add( [
              "",
              "",
              "[what should i write here??]",
              "[what should i write here??]",
              "&lt;td id=wtax_file_type&gt;&lt;/td&gt;",
              "&lt;td id=all_tax&gt;&lt;/td&gt;",
              "&lt;td id=tax_date&gt;&lt;/td&gt;",
              "&lt;button class='btn btn-xs btn-default'&gt;&lt;i class='icon-file-pdf text-error'&gt;&lt;/i&gt;&lt;span&gt; 테스트.pdf&lt;/span&gt;&lt;/button&gt;",
              "&lt;a class='btn-link color-primary'&gt;[이동]&lt;/a&gt;"
          ] ).draw().node();</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>My JS code</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>myDropzone.on("success", function(file, res) {
  
  
          /* removew preview when upload success*/
          $(file.previewElement).remove();
  
          console.log(res);
  
          if (res.result) {
              if (res.data) {
                  if (res.data.f_idx) {
                      $('#f_idx').text(res.data.f_idx);
                  }
                  if (res.data.client_name) {
                      $('#client_name').text(res.data.client_name);
                  }
                  if (res.data.client_biz_no) {
                      $('#client_biz_no').text(res.data.client_biz_no);
                  }
                  if (res.data.wtax_file_type) {
                      $('#wtax_file_type').text(res.data.wtax_file_type);
                  }
                  if (res.data.all_tax) {
                      $('#all_tax').text(res.data.all_tax);
                  }
                  if (res.data.tax_date) {
                      $('#tax_date').text(res.data.tax_date);
                  }
              }
          }
  
          var fileObj=JSON.parse(res);
  
  
         var rowNode = table.row.add( [
              "",
              "",
              "[what should i write here??]",
              "what should i write here??]",
              "&lt;td id=wtax_file_type&gt;&lt;/td&gt;",
              "&lt;td id=all_tax&gt;&lt;/td&gt;",
              "&lt;td id=tax_date&gt;&lt;/td&gt;",
              "&lt;button class='btn btn-xs btn-default'&gt;&lt;i class='icon-file-pdf text-error'&gt;&lt;/i&gt;&lt;span&gt; 테스트.pdf&lt;/span&gt;&lt;/button&gt;",
              "&lt;a class='btn-link color-primary'&gt;[이동]&lt;/a&gt;"
          ] ).draw().node();
  
  
      });</code></pre>
  </div>
  </div>
  </p>