title: Create new JSON depending on value entry using jq
body: <p>I have the below JSON</p>
  
  <pre><code>{
    "com-abc": {
      "componentName": "com-abc",
      "shortName": "abc",
      "tag": "1234",
      "commitId": "bb59d7c",
      "repository": "com-abc"
    },
    "com-def": {
      "componentName": "com-def",
      "shortName": "def",
      "tag": "5678",
      "commitId": "bb59d7cwfer",
      "repository": "com-def"
    },
    "com-ghi": {
      "componentName": "com-ghi",
      "shortName": "ghi",
      "tag": "91011",
      "commitId": "b55cwfer",
      "repository": "com-ghi"
    },
    "com-jkl": {
      "componentName": "com-jkl",
      "shortName": "jkl",
      "tag": "9107766",
      "commitId": "b55cwfer10f",
      "repository": "com-jkl"
    }
  }
  </code></pre>
  
  <p>My query:</p>
  
  <p>In the value , there is parameter "shortName" . I am trying to use jq to create a new json if the '<strong>shortName</strong>' matches a particular value. For example, if i pass <strong>shortName</strong> as <strong>'ghi'</strong> the new json should only contain the below sample. I'm trying to use jq here. </p>
  
  <pre><code>{
    "com-ghi": {
      "componentName": "com-ghi",
      "shortName": "ghi",
      "tag": "91011",
      "commitId": "b55cwfer",
      "repository": "com-ghi"
    }
  }
  </code></pre>