title: jq: avoid nested array mapping
body: <p>Here's my document:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;_id&quot;: &quot;a6c8004c-efdc-4462-b474-31df2d417be3&quot;,
    &quot;address&quot;: [
      {
        &quot;city&quot;: {
          &quot;value&quot;: &quot;2505300&quot;
        },
        &quot;state&quot;: {
          &quot;value&quot;: &quot;25&quot;
        },
        &quot;postalCode&quot;: {
          &quot;value&quot;: &quot;25132&quot;
        }
      }
    ]
  }
  {
    &quot;_id&quot;: &quot;aa4b4ba9-32e3-4384-8cd8-0852bae0029b&quot;,
    &quot;address&quot;: [
      {
        &quot;city&quot;: {
          &quot;value&quot;: &quot;2521700&quot;
        },
        &quot;state&quot;: {
          &quot;value&quot;: &quot;25&quot;
        },
        &quot;postalCode&quot;: {
          &quot;value&quot;: &quot;25300&quot;
        }
      }
    ]
  }
  </code></pre>
  <hr />
  <p>Currently, I'm applying this JQ filter:</p>
  <pre><code>def pick_address:
      {
          city: .city | .value,
          postalCode: .postalCode | .value,
          state: .state | .value
      };
  
  map(.address | map(pick_address))
  </code></pre>
  <hr />
  <p>I'm getting this:</p>
  <pre class="lang-json prettyprint-override"><code>[
    [
      {
        &quot;city&quot;: &quot;2505300&quot;,
        &quot;postalCode&quot;: &quot;25132&quot;,
        &quot;state&quot;: &quot;25&quot;
      }
    ],
    [
      {
        &quot;city&quot;: &quot;2521700&quot;,
        &quot;postalCode&quot;: &quot;25300&quot;,
        &quot;state&quot;: &quot;25&quot;
      }
    ]
  ]
  </code></pre>
  <hr />
  <p>As you can see, I'm getting above objects with nested array.</p>
  <p>I need to get it as:</p>
  <pre class="lang-json prettyprint-override"><code>[
    {
      &quot;city&quot;: &quot;2505300&quot;,
      &quot;postalCode&quot;: &quot;25132&quot;,
      &quot;state&quot;: &quot;25&quot;
    },
    {
      &quot;city&quot;: &quot;2521700&quot;,
      &quot;postalCode&quot;: &quot;25300&quot;,
      &quot;state&quot;: &quot;25&quot;
    }
  ]
  </code></pre>
  <hr />
  <p>I don't quite figure out what's wrong.</p>
  <p>Any ideas?</p>