JSONPath-Plus / JSONPath

A fork of JSONPath from http://goessner.net/articles/JsonPath/
Other
958 stars 169 forks source link

feat: add support for nested filter expressions #200

Closed carlosingles closed 8 months ago

carlosingles commented 8 months ago

PR description

This PR adds support for nested filter expressions using the examples listed in this document: https://datatracker.ietf.org/doc/draft-ietf-jsonpath-base/ (Section 2.3.5.3, Table 12) as well as the json-path-comparison project example: https://cburgmer.github.io/json-path-comparison/#filter_expression_with_subfilter

I have also added other tests in addition to the two samples to cover some other use cases.

Checklist

brettz9 commented 8 months ago

Has tests, references the comparison project and a standard too--looks great, thanks!

carlosingles commented 7 months ago

Thanks for merging this in @brettz9, would it be possible to have a new version of jsonpath-plus published to npm with these changes?

brettz9 commented 7 months ago

@carlosingles : Sure, released in 8.0.0