Filter List by Multiple Values

Filters a list of objects, keeping the items whose value at a given path matches any of a set of values. Use it to narrow a list down to specific entries.

What it does

  • Compares the value at the given JSON path in each item against your list of comparison values.
  • Returns the filtered list, plus which values were found and which were not.
  • Reports whether all of the values matched, and whether at least one matched.

Inputs

NameTypeDescription
Items to FilterListList of objects to filter
JSON PathStringJSON path in the item to the value for comparison.
Comparison ValuesListList of values to filter against

Outputs

NameTypeDescription
SuccessBooleanSuccessfully run the filter
Filtered ListListfiltered list of items satisfying the comparison
Included ValuesListvalues from input that were found
Not Included ValuesListvalues from input that were not found in the list
Found All?Booleanall values were matched?
Found one?Booleanat least one value was matched?

Notes

  • The JSON path points to the field inside each item to compare against the values.