title: csv to json or json format as column array command line
body: <p>is it possible to obtain this output ?
  With a command line tool (jq or other)</p>
  <p>From csv</p>
  <pre><code>id,age,gender
  1,39,M
  2,25,M
  </code></pre>
  <p>To json column array</p>
  <pre class="lang-json prettyprint-override"><code>[{&quot;id&quot;:[&quot;1&quot;,&quot;2&quot;]},{&quot;age&quot;:[&quot;39&quot;,&quot;25&quot;]},{&quot;gender&quot;:[&quot;M&quot;,&quot;M&quot;]}]
  </code></pre>
  <p>OR from json</p>
  <pre class="lang-json prettyprint-override"><code>[
      {
          &quot;id&quot;: &quot;1&quot;,
          &quot;age&quot;: &quot;39&quot;,
          &quot;gender&quot;: &quot;M&quot;
      },
      {
          &quot;id&quot;: &quot;2&quot;,
          &quot;age&quot;: &quot;25&quot;,
          &quot;gender&quot;: &quot;M&quot;
      }
  ]
  </code></pre>
  <p>To json column array</p>
  <pre class="lang-json prettyprint-override"><code>[{&quot;id&quot;:[&quot;1&quot;,&quot;2&quot;]},{&quot;age&quot;:[&quot;39&quot;,&quot;25&quot;]},{&quot;gender&quot;:[&quot;M&quot;,&quot;M&quot;]}]
  </code></pre>
  <p>Hoping you understood me. Thank you in advance for your answers.</p>