unstale

pypi / jsonpath-ng

jsonpath-ng

What changed in jsonpath-ng 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

25 breaking11 deprecations9 new APIs and options5 performance3 behavior and defaults3 tooling26 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

jsonpath-ng 182 changes

Breaking changes 25

  • Parsing an unquoted `* now produces a Wildcard() node instead of Fields('*') or Slice()`; finding, updating, and filtering results are unchanged.

    1.16.0release notes

  • A quoted `* is treated as a field name, so parse("$['*']").find(data)` returns only the value of that field.

    1.16.0release notes

  • Empty slices now select nothing from non-array values, including during updating and filtering; use `[*]` to select object members.

    1.16.0release notes

  • The CLI now prints matches as valid JSONL, so its output can be re-parsed as JSON.

    1.15.0release notes

  • Query serialization now quotes field names beginning with @ unless @ is followed by a letter or underscore.

    1.13.0release notes

  • Strings are no longer speculatively coerced to integers in filter comparisons, so numeric strings no longer match integer literals.

    1.13.0release notes

  • A slice with a step size of 0 now returns an empty list, aligning with RFC 9535.

    1.13.0release notes

  • Filtering by array index ignores out-of-range indices and non-array values, and queries selecting several indices remove exactly the selected elements.

    1.12.0release notes

  • Inside a filter, $ now resolves to the root node instead of acting as an alias for @, which refers to the element being tested.

    1.12.0release notes

  • An index applied to a string or scalar now matches nothing, rather than finding characters or raising TypeError.

    1.11.0release notes

  • Slices now find nothing unless applied to an array.

    1.11.0release notes

  • The wildcard no longer coerces scalars or objects into arrays; it finds object member values and array elements, and nothing from a scalar.

    1.11.0release notes

  • When used as a field, the wildcard now finds array elements as well as object member values; update() and filter() also act on those array elements.

    1.11.0release notes

  • Booleans are no longer treated as numbers: a boolean is never equal to a number.

    1.11.0release notes

  • Filters can compare against JSON null; unquoted null no longer matches the string "null", and comparisons with null no longer raise TypeError for relational operators.

    1.11.0release notes

  • Project metadata now restricts installation to supported Python versions.

    1.9.1release notes

  • Serialization no longer surrounds Child paths with parentheses.

    1.9.0release notes

  • Applying Index.find to a dict no longer raises KeyError; it matches nothing.

    1.9.0release notes

  • Negative indices beyond the start of an array return no matches, like out-of-range positive indices.

    1.9.0release notes

  • Python 3.15 is supported, and Python 3.10 support is dropped.

    1.9.0release notes

  • ExtentedJsonPathParser has been renamed.

    1.8.0release notes

  • Pickle support is removed from the vendored copy of ply to resolve CVE-2025-56005.

    1.8.0release notes

  • The ply dependency is removed.

    1.8.0release notes

  • Python 3.13 and 3.14 are supported; Python 3.8 and 3.9 are no longer supported.

    1.8.0release notes

  • Serialization is adjusted to enforce roundtrip parsing consistency; fields are more conservatively enclosed in quotation marks.

    1.8.0release notes

Deprecations 11

  • Interpreting `Fields('*') as a wildcard is deprecated; replace usages with Wildcard()`.

    1.16.0release notes

  • Interpreting `Slice() with no parameters as a wildcard is deprecated; replace usages with Wildcard()`.

    1.16.0release notes

  • Parsing unquoted words as comparison operands in filter selectors is deprecated; quote strings instead.

    1.14.0release notes

  • The union operator between paths issues a DeprecationWarning and is scheduled for removal in version 2.0.0.

    1.13.0release notes

  • The intersection operator between paths issues a DeprecationWarning and is scheduled for removal in version 2.0.0.

    1.13.0release notes

  • The logical AND operator in filters issues a DeprecationWarning; use && instead.

    1.13.0release notes

  • The Union and Intersect classes issue a DeprecationWarning when accessed and are scheduled for removal in version 2.0.0.

    1.13.0release notes

  • Instantiating Filter with no expressions is deprecated and will raise an exception in version 2.0.0.

    1.10.1release notes

  • The debug parameter for lexer and parser instantiation is deprecated and has no effect; remove it from instantiation sites.

    1.10.0release notes

  • ExtentedJsonPathParser is deprecated; use ExtendedJsonPathParser instead.

    1.10.0release notes

  • The __version__ attribute is deprecated; use importlib.metadata.version("jsonpath-ng") to get the package version.

    1.10.0release notes

New APIs and options 9

  • Adds a node that selects every child of an object or array.

    1.16.0release notes

  • The CLI can now be run as a Python module.

    1.15.0release notes

  • RFC 9535 logical operators are supported in filters; && binds more tightly than ||, and parentheses group expressions.

    1.13.0release notes

  • Serialized filters can be parsed again; this becomes @, strings are single-quoted, and & becomes &&.

    1.13.0release notes

  • Extended filter expressions now support negating relative existence queries.

    1.9.0release notes

  • Indices can be comma-separated.

    1.8.0release notes

  • DatumInContext supports in-place updating.

    1.8.0release notes

  • Operation instances support equality checking.

    1.8.0release notes

  • Union and Intersect instances support string serialization.

    1.8.0release notes

Performance 5

  • The split extension no longer takes quadratic time to reject malformed definitions.

    1.15.0release notes

  • The sub extension no longer takes quadratic time to reject malformed definitions.

    1.15.0release notes

  • Removing array elements with Slice.filter() no longer takes quadratic time.

    1.13.0release notes

  • Runtimes now scale linearly with the depth of the data.

    1.11.0release notes

  • Pre-generated PLY lex/parse tables make parser instantiation and parsing faster, and allow downstream projects to run with Python optimizations enabled.

    1.10.0release notes

Behavior and default changes 3

  • Filter comparisons can now use a query on the right-hand side, starting with @ or $ and containing only name and index segments.

    1.12.0release notes

  • The extended parser now allows true and false as field names while continuing to treat them as boolean literals on the right-hand side of filter comparisons.

    1.11.0release notes

  • EMOJI and CJK Unicode are supported.

    1.8.0release notes

Tooling 3

  • Type annotations were added to many JSONPath interfaces.

    1.12.0release notes

  • Add a PEP 561 marker so the package can be recognized as typed.

    1.9.0release notes

  • Typing is provided for IDE autocomplete.

    1.8.0release notes

Fixes and other changes 26

  • The CLI code is relicensed under Apache 2.0; the notes state relicensing is allowed under the previous license.

    1.15.0release notes

  • Pre-generated PLY tables are now explicitly imported so PyInstaller bundles them, fixing ModuleNotFoundError failures in frozen apps.

    1.14.0release notes

  • Filter comparisons with literals now handle string and integer values and missing target paths correctly.

    1.13.0release notes

  • Ordering values of different types in a filter no longer raises a TypeError.

    1.13.0release notes

  • Slice.filter() no longer removes the wrong elements from an array.

    1.13.0release notes

  • Index updates are skipped for non-list inputs and out-of-range array indices.

    1.12.0release notes

  • A filter following `..` now parses and selects every matching array element or object member value at any depth.

    1.11.0release notes

  • Paths using `..` no longer raise RecursionError when applied to deeply nested data, though very long JSONPath expressions can still raise it.

    1.11.0release notes

  • Fixes a TypeError crash that can occur when filtering scalar values with a Filter instantiated without expressions.

    1.10.1release notes

  • Equality against an integer literal no longer truncates float values when matching.

    1.9.0release notes

  • Evaluating extended filter expressions no longer mutates dictionaries.

    1.9.0release notes

  • Field names starting with true or false are handled correctly.

    1.9.0release notes

  • Hashing an Index instance no longer raises AttributeError.

    1.9.0release notes

  • str() now works for an Index with comma-separated indices.

    1.9.0release notes

  • Updating named fields ignores non-mapping values instead of raising TypeError.

    1.9.0release notes

  • Slice serialization preserves omitted bounds and step values correctly.

    1.9.0release notes

  • An in-place callback returning None no longer overwrites the field with None.

    1.9.0release notes

  • The bool filter type now handles None values.

    1.8.0release notes

  • Serialization preserves Child precedence using parentheses so strings such as a..b[c] re-parse identically.

    1.8.0release notes

  • A fix addresses handling of False and None values.

    1.8.0release notes

  • The field filter resolves a wildcard path issue.

    1.8.0release notes

  • Parsing and string serialization of numeric-only identifiers are fixed; 10 no longer parses as two separate fields.

    1.8.0release notes

  • Operation instances can now be serialized, fixing serialization of 0-@ and A -A.

    1.8.0release notes

  • A fix addresses the single constant case.

    1.8.0release notes

  • Equality checks for SortedThis instances are fixed.

    1.8.0release notes

  • SortedThis instances can be serialized and re-parsed, fixing serialization of 0[/0].

    1.8.0release notes