dchester / jsonpath

Query and manipulate JavaScript objects with JSONPath expressions. Robust JSONPath engine for Node.js.
MIT License
1.33k stars 215 forks source link

Add max, min, and sum functions #153

Open YashTotale opened 3 years ago

YashTotale commented 3 years ago

Adding support for .max(), .sum(), .min() would be a great help and improve the flexibility of this library.

Other JSON-path implementations such as the Java one have already added support for these methods.

Examples:$.numbers.sum(), $.numbers.min(), $.numbers.max(), $.sum($.numbers.max())

Thanks!

PS1TD commented 9 months ago

Could use this