title: How to remove duplicate objects from json array using hashset?
body: <p>Any one help me out from this issue,</p>
  
  <p>How to remove duplicate objects from <code>JSON</code> using <code>JAVA</code> hash set? Here I want to remove duplicates from below <code>JSON</code></p>
  
  <pre><code>{
  "others":[
      {
          "id":"1",
          "caption":"test"
      },
      {
          "id":"2",
          "caption":"self"
      },
      {
          "id":"2",
          "caption":"Self"
      },
      {
          "id":"1",
          "caption":"test"
      }
  ],
  "quantity":[
      {
          "id":"1",
          "caption":"self1"
      },
      {
          "id":"1",
          "caption":"self1"
      }
  ]}
  </code></pre>