title: Removal of Duplicates from payload in mule 4
body: <p>How to remove duplicate object from payload.
  My requirement is I have a websocket connector which provides payload (a object) every second or sometimes after few hours,we will be receiving messages, In those few entries we will be duplicate records. How to remove duplicate records from payload which we are receiving in different period of time.
  example:
  At 10:30 AM IST
  {
  &quot;EmpName&quot;:&quot;Sonam&quot;,
  &quot;message&quot;:&quot;Incorrect username or password.&quot;}
  At 10:35 AM IST
  {
  &quot;EmpName&quot;:&quot;Bulbul&quot;,
  &quot;message&quot;:&quot;Valid&quot;}
  At 10:40 AM IST
  {
  &quot;EmpName&quot;:&quot;Bulbul&quot;,
  &quot;message&quot;:&quot;Valid&quot;}
  I need to filter and keep only 10:30 and 10:35 AM IST messages.
  Please help me how can I achieve this.</p>