The block "Deduplicate list" allows you to remove duplicates from a list (array) of objects). Objects will be compared based on one given key. If the values of the key are the same, all but one object will be removed from the output.

Example inputs:

Key

The input "key" accepts a key such as email or a nested key such as profile.email.

Example list

[
      {"email": "john@doe.com", "name": "John Doe"},
      {"email": "bill@acme.com", "name": "Bill Davis"},
      {"email": "john@doe.com", "name": "John"},
]

In the above example inputs and example list, the output of the block will be:

[
      {"email": "john@doe.com", "name": "John Doe"},
      {"email": "bill@acme.com", "name": "Bill Davis"}
]

Iterator

This block does not use an iterator, which means that the input list will be loaded in memory before doing the deduplication. This means that a Blend using this block will fail with an "out of memory" error for very large lists.

Did this answer your question?