title: Show a raw list of items after deletion another item with jq
body: <p>I've got a json file with the following content:</p>
  
  <pre><code> {
      "stuff": {
          "usfull": [
              "aa",
              "bb",
              "cc",
              "dd"
          ],
          "usefulAsWell": [
              "ab",
              "cd",
              "ef",
              "gh"
          ],
          "waste": [
              "12",
              "34",
              "56"
          ],
          "moreWaste": [
              "78"
          ]
      }
   }
  </code></pre>
  
  <p>I would need a plain list of the items "useful" and "usefulAsWell". I don't know if more useful items will be added later on, but I know which items are waste and want them included instead of just listing the useful ones.</p>
  
  <p>With the following command I already got a list, but it still contains format characters like [],"</p>
  
  <pre><code>cat example.json | jq -r '.stuff | del(.waste,.moreWaste) | .[]'
  
  [
    "aa",
    "bb",
    "cc",
    "dd"
  ]
  [
    "ab",
    "cd",
    "ef",
    "gh"
  ]
  </code></pre>
  
  <p>With the following command I get a nice list, but it unfortunately contains the waste:</p>
  
  <pre><code>cat example.json | jq -r '.stuff[] | .[]'
  
  aa
  bb
  cc
  dd
  ab
  cd
  ef
  gh
  12
  34
  56
  78
  </code></pre>
  
  <p>When trying to add the deletion part, I get an error message:</p>
  
  <pre><code>cat example.json | jq -r '.stuff[] | del(.waste,.moreWaste) | .[]'
  jq: error (at &lt;stdin&gt;:24): Cannot index array with string "waste"
  </code></pre>
  
  <p>Any idea on this topic?</p>
  
  <p>Thanks in advance!</p>