title: Find duplicates in JSON using python
body: <p>I'm new to python and I'm trying to achieve the following:
  Send a get request to an IP of cloudera-Manager which returns a JSON of hosts with the following structure:</p>
  
  <pre><code>{
    "items" : [ {
      "hostId" : "ddcfbea6-8a7c-462c-38f9-0116338e438a",
      "ipAddress" : "1.2.3.4",
      "hostname" : "host.example.com",
      "rackId" : "/rack01",
      "hostUrl" : "http://host.example.com:7180/cmf/hostRedirect/ddcfbea6-8a7c-462c-38f9-0116338e438a"
    }
  ...
  }
  </code></pre>
  
  <p>The JSON can contain hundreds of elements and I'd like to find all the elements that have the same value of ipAddress entry and print them and their keys and values  .
  How can I achieve this ? I'm sending the get request using the requests module. </p>