Filter List V2

Filters a list of JSON objects by comparing a field value against a target using a chosen operator. Supports 11 comparison modes including text, numeric and date-based checks.

What it does

  • Takes a list of objects and a JSON path pointing to the field to compare.
  • Applies the chosen comparison operator against the provided value.
  • Returns only the objects that satisfy the condition, along with the result count.

Notes

  • Supports floating-point and date comparisons (unlike V1 which is limited to string/integer).
  • The younger/older operators treat the JSON path value as a date and the comparison value as a number of days.
  • distinct returns items with unique values at the given path (no comparison value needed).
  • Case Sensitive only applies to equals, not equals, contains, and not contains operators.

Inputs

NameTypeDescription
Items to FilterListList of JSON objects to filter
JSON PathStringPath to the field within each object (e.g. order.status). For younger/older, this should point to a date field
Comparison OperatorStringOne of: equals, not equals, contains, not contains, distinct, bigger, smaller, not bigger, not smaller, younger, older
Comparison ValueStringValue to compare against. Not used for distinct. Number of days for younger/older
Case SensitiveBooleanWhether string comparisons are case-sensitive

Outputs

NameTypeDescription
SuccessBooleanWhether the filter ran successfully
Filtered ListListObjects that satisfy the comparison
Number of ItemsNumberCount of items in the filtered list