title: How can I duplicate multiple times an existing object within a JSON array using jq?
body: <p>I have the following json file:</p>
  
  <pre><code>{
    "actions": [
      {
        "values": "test",
        "features": [
          {
            "v1": 100,
            "v2": {
              "dates": [
                "2020-04-08 06:58:26",
                "2020-04-08 06:58:26"
              ]
            }
          }
        ]
      }
    ]
  }
  </code></pre>
  
  <p>I would like to append n-times the object within the "actions" array to the end of it, creating n+1 total objects.</p>
  
  <p>Expected output if n=2:</p>
  
  <pre><code>{
    "actions": [
      {
        "values": "test",
        "features": [
          {
            "v1": 100,
            "v2": {
              "dates": [
                "2020-04-08 06:58:26",
                "2020-04-08 06:58:26"
              ]
            }
          }
        ]
      },
      {
        "values": "test",
        "features": [
          {
            "v1": 100,
            "v2": {
              "dates": [
                "2020-04-08 06:58:26",
                "2020-04-08 06:58:26"
              ]
            }
          }
        ]
      },
      {
        "values": "test",
        "features": [
          {
            "v1": 100,
            "v2": {
              "dates": [
                "2020-04-08 06:58:26",
                "2020-04-08 06:58:26"
              ]
            }
          }
        ]
      }
    ]
  }
  </code></pre>
  
  <p>I found this answer [<a href="https://stackoverflow.com/questions/48983196/how-can-i-duplicate-an-existing-object-within-a-json-array-using-jq/48984894#48984894?newreg=356f704a5eb343c195ffb51f6709e224]">How can I duplicate an existing object within a JSON array using jq?</a> however it only works with one element at the end.</p>