Version 0.6.0
Breaking changes
- The "extra filter context" identifier now defaults to
_
. Previously it defaulted to#
, but it has been decided that#
is better suited as a current key/property or index identifier.
Features
- Added a non-standard keys/properties selector (docs, source).
- Added a non-standard
typeof()
filter function.type()
is an alias fortypeof()
(docs, source). - Added a non-standard
isinstance()
filter function.is()
is an alias forisinstance()
(docs, source). - Added a current key/property or index identifier. When filtering a mapping,
#
will hold key associated with the current node (@
). When filtering a sequence,#
will hold the current index. See docs.
IETF JSONPath Draft compliance
- Don't allow leading zeros in index selectors. We now raise a
JSONPathSyntaxError
. - Validate the built-in
count()
function's argument is array-like.