title: How to extract object from array by json_query?
body: <p>I have got json from variable like below.</p>
  
  <pre><code>[
  {
      "policyName1": {
      "resourceType": "Name1Type",
      "id": "uuid-0000-000-0-1",
      "extraAttr1": 
      [
          {
              "network11": 
              {
                  "allowAction": "yes",
                  "ipAddresses":
                  [
                      "192.168.29.193",
                      "192.168.29.196"
                  ],
                  "disabled": false,
                  "ip_protocol": "IPV4_IPV6"
              }
          }
      ]
      }
  },
  {
      "policyName2": {
      "resourceType": "name2Type",
      "id": "uuid-0000-000-0-2",
      "extraAttr12": 
      [
          {
              "network12": 
              {
                  "allowAction": "yes",
                  "ipAddresses":
                  [
                      "192.168.29.193",
                      "192.168.29.197"
                  ],
                  "disabled": false,
                  "ip_protocol": "IPV4_IPV6"
              }
          }
      ]
      }
  },
  {
      "policyName3": {
      "resourceType": "name3Type",
      "id": "uuid-0000-000-0-3",
      "extraAttr2": 
      [
          {
              "network13": 
              {
                  "allowAction": "yes",
                  "ipAddresses":
                  [
                      "192.168.29.191",
                      "192.168.29.195"
                  ],
                  "disabled": false,
                  "ip_protocol": "IPV4_IPV6"
              }
          }
      ]
      }
  }
  </code></pre>
  
  <p>]</p>
  
  <p>As you can see it is a normaln json. I need select (extract) whole object by id. For example, when I put id "uuid-0000-000-0-3" i would like receive object PolicyName3</p>
  
  <pre><code>{
  "policyName3": {
  "resourceType": "name3Type",
  "id": "uuid-0000-000-0-3",
  "extraAttr3": 
  [
      {
          "netowork13": 
          {
              "allowAction": "yes",
              "ipAddresses":
              [
                  "192.168.29.191",
                  "192.168.29.195"
              ],
              "disabled": false,
              "ip_protocol": "IPV4_IPV6"
          }
      }
  ]
  }
  </code></pre>
  
  <p>}</p>
  
  <p>The digit are add automaticly by software and I can not remove them.</p>
  
  <p>Also it is possible to add extra IP address childName.ipAddresses??</p>
  
  <p>Thank you for help</p>