title: Converting GeoJSON into a flat JSON with jq
body: <p>Let's say I have the following GeoJSON file:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;type&quot;: &quot;FeatureCollection&quot;,
    &quot;name&quot;: &quot;geojson&quot;,
    &quot;features&quot;: [
      {
        &quot;type&quot;: &quot;Feature&quot;,
        &quot;properties&quot;: {
          &quot;id&quot;: 1,
          &quot;value1&quot;: 4.7557783e-06,
          &quot;value2&quot;: 0
        },
        &quot;geometry&quot;: null
      },
      {
        &quot;type&quot;: &quot;Feature&quot;,
        &quot;properties&quot;: {
          &quot;id&quot;: 1,
          &quot;value1&quot;: 1.4931199e-05,
          &quot;value2&quot;: 5
        },
        &quot;geometry&quot;: null
      }
    ]
  }
  </code></pre>
  <p>I know that with the line <code>cat file.geojson | jq '.features[].properties'</code> I can get the following result:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;id&quot;: 1,
    &quot;value1&quot;: 4.7557783e-06,
    &quot;value2&quot;: 0 
  }   
  {     
    &quot;id&quot;: 1,
    &quot;value1&quot;: 1.4931199e-05,
    &quot;value2&quot;: 5
  }       
  </code></pre>
  <p>However, I'd like to have this result inside an array like the following:</p>
  <pre class="lang-json prettyprint-override"><code>[
    {
      &quot;id&quot;: 1,
      &quot;value1&quot;: 4.7557783e-06,
      &quot;value2&quot;: 0
    },
    {
      &quot;id&quot;: 1,
      &quot;value1&quot;: 1.4931199e-05,
      &quot;value2&quot;: 5
    }
  ]
  </code></pre>
  <p>How can I add the brackets <code>[]</code> and the proper commas <code>,</code> with <code>jq</code> to form this last flat JSON file?</p>