title: creating a table horizonally
body: <p>I want to create html table with horizontally  with json data</p>
  <pre><code>need ti display the table as 
  name John
  age  30
  </code></pre>
  <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>let user = {
    name: "John",
    age: 30
  };
  //$('#geo_summary tbody').append(
  Object.entries(user).reduce((res, row) =&gt; {
  res.map(x =&gt; $('&lt;td&gt;').text(x))
  //console.log(res);
  });
  
  //);
  console.log(Object.entries(user).reduce((res, row) =&gt; {
   res.map(x =&gt; x)
  }));</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;table id="geo_summary"&gt;
  &lt;tbody&gt;&lt;/tbody&gt; 
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>