List Intersection

Returns the items that appear in both of two lists, compared by a given path. Use it to find the common values between two lists.

What it does

  • Compares the two lists using the given JSON paths ($. for simple lists).
  • Returns the items present in both lists, and the items not in common.
  • Reports whether any intersection exists and the number of matches.

Inputs

NameTypeDescription
List 1ListFirst list
List 2ListSecond list
First JSON PathStringJSON path for the first list. '$.' can be used for simple lists
Second JSON PathOptional StringJSON path for the first list. Default: path1
Ignore CaseOptional BooleanIgnore case when comparing values

Outputs

NameTypeDescription
Intersection Exists?BooleanWhether there is an intersection between the two lists
Result ListListIntersection list
Opposite Result ListListOpposite of Intersection list
Number of itemsNumberNumber of items in the result list

Notes

  • Can ignore case when comparing values.
  • If only the first path is provided, it is used for both lists.