title: Create array from multi-dimensional one with jq
body: <p>I would like to use 'jq' json processor to transform a json structure to an array of simple objects.</p>
  
  <p>My structure is like this:</p>
  
  <pre><code>{"nsgs": [
      {
          "comments": "text1",
          "properties": {
              "securityRules": [
                  {
                      "name": "1",
                      "properties": {
                          "protocol": "TCP",
                          "sourcePortRange": "*"
                      }
                  },
                  {
                      "name": "2",
                      "properties": {
                          "protocol": "UDP",
                          "sourcePortRange": "*"
                      }
                  }
              ]
          }
      },
      {
          "comments": "text2",
          "properties": {
              "securityRules": [
                  {
                      "name": "3",
                      "properties": {
                          "protocol": "TCP",
                          "sourcePortRange": "*"
                      }
                  },
                  {
                      "name": "4",
                      "properties": {
                          "protocol": "UDP",
                          "sourcePortRange": "*"
                      }
                  }
              ]
          }
      }
  ]}
  </code></pre>
  
  <p>And what I want to get is:</p>
  
  <pre><code>[
  { "comments": "text1",
    "name": "1",
    "protocol": "TCP",
    "sourcePortRange": "*"
  },
  
  { "comments": "text1",
    "name": "2",
    "protocol": "UDP",
    "sourcePortRange": "*"
  },
  
  { "comments": "text2",
    "name": "3",
    "protocol": "TCP",
    "sourcePortRange": "*"
  },
  
  { "comments": "text2",
    "name": "4",
    "protocol": "UDP",
    "sourcePortRange": "*"
  }
  ]
  </code></pre>
  
  <p>I tried lots of approaches but nothing helps.</p>
  
  <p>Will appreciate any help.</p>