title: Find Duplicate Objects in JSON Array
body: <p>I am relatively new to c# and need some guidance. I need to search through a large json array to find duplicate objects and list how many occurrences.</p>
  <p>Sample Array</p>
  <pre><code>{
      &quot;data&quot;: 
          [
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID1&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;SEND&quot;
            },
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID1&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;SEND&quot;
            },
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID2&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;RECV&quot;
            },
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID2&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;RECV&quot;
            },
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID2&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;RECV&quot;
            },
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID2&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;SEND&quot;
            },          
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID2&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;SEND&quot;
            },          
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID2&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;SEND&quot;
            }
            
          ]
  }
  </code></pre>
  <p>I have been able to search through and find duplicate elements but not the complete object. The output should be:</p>
  <pre><code>{
      &quot;result&quot;: 
          [
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID1&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;SEND&quot;,
              &quot;objCount&quot;: 2
            },
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID2&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;RECV&quot;,
              &quot;objCount&quot;: 3
            },
            {
              &quot;date&quot;: &quot;20220101&quot;,
              &quot;someID&quot;: &quot;ID2&quot;,
              &quot;someType1&quot;: &quot;SRVC&quot;,
              &quot;someType2&quot;: &quot;SEND&quot;,
              &quot;objCount&quot;: 3
            }
            
          ]
  }
  </code></pre>
  <p>Any help to point me in the right direction would be great. Thanks in advance</p>