How to remove an array element with jq?
<p>I'm trying to figure out how to remove an array element from some JSON using jq.
Below is the input and desired output.</p>

<pre><code>jq .Array[0] 
</code></pre>

<p>outputs the array element I want. </p>

<pre><code>{
      "blah1": [
        "key1:val1"
      ],
      "foobar0": "barfoo0",
      "foobar1": "barfoo1"
    }
</code></pre>

<p>But how do I re-wrap this with:</p>

<pre><code>{
  "blah0": "zeroblah",
  "Array": [
</code></pre>

<p>and</p>

<pre><code>  ]
}
</code></pre>

<p>Input:</p>

<pre><code>{
  "blah0": "zeroblah",
  "Array": [
    {
      "blah1": [
        "key1:val1"
      ],
      "foobar0": "barfoo0",
      "foobar1": "barfoo1"
    },
    {
      "blah2": [
        "key2:val2"
      ],
      "foobar2": "barfoo2",
      "foobar3": "barfoo3"
    }
  ]
}
</code></pre>

<p>Desired output:</p>

<pre><code>{
  "blah0": "zeroblah",
  "Array": [
    {
      "blah1": [
        "key1:val1"
      ],
      "foobar0": "barfoo0",
      "foobar1": "barfoo1"
    }
  ]
}
</code></pre>