Version 1.2.0
Fixes
- Fixed the error and error message arising from JSONPath queries with filter expressions and a missing closing bracket for the segment. Previously we would get a
JSONPathLexerError
, stating we "can't backup beyond start", which is meant to be an internal error. We now get aJSONPathSyntaxError
with the message "unclosed bracketed selection".
Features
- Added a non-standard keys selector (
~
), selecting property names from objects. The keys selector is only enabled when settingJSONPathEnvironment
'sstrict
option tofalse
(docs, source). - Added a non-standard current key identifier (
#
).#
will be the key or index corresponding to@
in a filter expression. The current key identifier is only enabled when settingJSONPathEnvironment
'sstrict
option tofalse
(docs, source).