Version 1.0.0
RFC 9535 (JSONPath: Query Expressions for JSON) is now out, replacing the draft IETF JSONPath base.
Breaking Changes
- The undocumented
keys
function extension is no longer enabled by default. A new, well-typedkeys
function is planned for the future.
Fixes
- The lexer now sorts environment-controlled tokens by their length in descending order. This allows one custom token to be a prefix of another.
Features
- Added the non-standard "fake root" identifier, which defaults to
^
and can be customized with thefake_root_token
attribute on aJSONPathEnvironment
subclass. Using the fake root identifier is equivalent to the standard root identifier ($
), but wraps the target JSON value in an array, so the root value can be conditionally selected using a filter. - Non-standard environment-controlled tokens can now be disabled by setting them to the empty string.