Version 0.5.0
Features
- Added the built-in
matchfilter function. - Added the built-in
searchfilter function. - Added the built-in
valuefilter function. - We now pass the current environment to filter function validation.
- Added support for the wildcard selector in selector segment lists.
- We now allow nested filters.
Fixes
- Fixed a bug where the current object selector (
@) would evaluate toundefinedwhen a filter is applied to an array of strings. - Compound paths that have a trailing
|or&now raise aJSONPathSyntaxError.
IETF JSONPath Draft compliance
- Removed support for dotted index selectors.
- Raise a
JSONPathSyntaxErrorfor unescaped whitespace and control characters. - Raise a
JSONPathSyntaxErrorfor empty selector segments. - Raise a
JSONPathIndexErrorif an index selector is out of range. - Raise a
JSONPathSyntaxErrorfor too many colons in a slice selector. - Raise a
JSONPathIndexErrorif a slice selector argument is out of range.