title: Key value to be added in nested array
body: <p>This is my json which i am trying to parse using jq</p>
  
  <pre><code>{
      "orgs": {
          "org1": [{
                  "space": "landscape2",
                  "tag": "landscape2",
                  "manager": {
                      "destination": "destination1"
                  }},
              {
                  "space": "landscape3",
                  "tag": "landscape3",
                  "manager": {
                      "destination1": "approuter",
                      "destination2": "approuter2"
                  }},
              {
                  "space": "landscape4",
                  "app": "",
                  "l_port_increment": 25,
                  "host": "",
                  "port": ""
              }],
          "org2": [
          {
                  "space": "landscape1",
                  "app": "ain-hana-chisel-cs",
                  "l_port_increment": 13,
                  "host": "10.03.76.234",
                  "port": "30044"
              },
              {
                  "space": "landscape3",
                  "tag": "landscape3",                
                  "manager1": {
                      "destination5": "service-v2",
                      "destination6": "service-v2"
                  },
                  "manager": {
                      "destination": "destination1"
                  },
                  "l_port_increment": 25,
                  "host": "",
                  "port": ""
              }   ]       }    }
  </code></pre>
  
  <p>I am looking for an output as below where tag should be one of the filter.</p>
  
  <pre><code>{
    "orgs: "org1",
    "space": "landscape3",
    "tag": "landscape3",
    "manager": {
      "destination1": "approuter",
      "destination2": "approuter2"
    }
  }
  {
    "orgs": "org2",
    "space": "landscape3",
    "tag": "landscape3",
    "manager1": {
      "destination5": "service-v2",
      "destination6": "service-v2"
    },
    "manager": {
      "destination": "destination1"
    },
    "l_port_increment": 25,
    "host": "",
    "port": ""
  }
  </code></pre>
  
  <p>Using this code, I can achieve the result partially, however unable to get the orgs details.
      .orgs[] | .[ ] | select(."tag"=="landscape3")  | select (."manager")</p>
  
  <p>My actual output is as below. How to do it by using jq? I have tried several ways but unable tot get the desired output</p>
  
  <pre><code> {
    "space": "landscape3",
    "tag": "landscape3",
    "manager": {
      "destination1": "approuter",
      "destination2": "approuter2"
    }
  }
  {
    "space": "landscape3",
    "tag": "landscape3",
    "manager1": {
      "destination5": "service-v2",
      "destination6": "service-v2"
    },
    "manager": {
      "destination": "destination1"
    },
    "l_port_increment": 25,
    "host": "",
    "port": ""
  }
  </code></pre>