Skip to content

Version 1.0.0

Compare
Choose a tag to compare
@jg-rp jg-rp released this 23 Feb 11:50
· 64 commits to main since this release

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-typed keys 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 the fake_root_token attribute on a JSONPathEnvironment 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.