sum_values
Sums numeric values matched by a JSONPath expression in a loaded document alias and returns the total and count.
Instructions
Sum numeric values matched by a JSONPath expression.
Args: alias: The alias of the loaded document. expression: A JSONPath expression resolving to numbers (e.g. "$.orders[*].total").
Returns: The sum and count of matched numeric values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | ||
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |