json_filter
Filter JSON array data using flexible conditions. Apply comparison operators (equals, contains, etc.) and combine with AND/OR logic. Specify a JSON file path and conditions to extract matching objects efficiently.
Instructions
Filter JSON array data using flexible conditions. Supports various comparison operators (equals, greater than, contains, etc.) and can combine multiple conditions with AND/OR logic. Requires maxBytes
parameter (default 10KB). Perfect for filtering collections of objects based on their properties. The path must be within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
arrayPath | No | Optional JSONPath expression to locate the target array (e.g., "$.items" or "$.data.records") | |
conditions | Yes | Array of filter conditions | |
match | No | How to combine multiple conditions - "all" for AND, "any" for OR | all |
maxBytes | Yes | Maximum bytes to read from the file. Must be a positive integer. Handler default: 10KB. | |
path | Yes | Path to the JSON file to filter |