title: How to trim white space for every element in JQ?
body: <p>I have the following simple JSON</p>
  
  <pre><code>json='[{"k1":" http://url", "k2":null, "k3":" v3", "k4":" v4"}]'
  </code></pre>
  
  <p>what I need is:</p>
  
  <pre><code>"http://url",null
  </code></pre>
  
  <p>(without a space before <code>v1</code> and <code>v2</code>)</p>
  
  <p>What I have is:</p>
  
  <pre><code>echo $json | jq -c '.[] | .k1, .k2 ' | paste -d "," - -
  </code></pre>
  
  <p>How to get rid of the space in k1 and k2 values?</p>