[Git][debian-gis-team/jsonpath-ng][upstream] New upstream version 1.16.0+ds
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Nov 7 15:00:11 GMT 2026
Antonio Valentino pushed to branch upstream at Debian GIS Project / jsonpath-ng
Commits:
864c0dd7 by Antonio Valentino at 2026-11-07T14:52:53+00:00
New upstream version 1.16.0+ds
- - - - -
25 changed files:
- .gitignore
- + .readthedocs.yaml
- CHANGELOG.rst
- README.rst
- pyproject.toml
- + requirements/README.rst
- + requirements/docs/pyproject.toml
- + requirements/docs/requirements.txt
- src/jsonpath_ng/_ply_tables/ext_parser_table.py
- src/jsonpath_ng/_ply_tables/parser_table.py
- src/jsonpath_ng/ext/filter.py
- src/jsonpath_ng/ext/parser.py
- src/jsonpath_ng/jsonpath.py
- src/jsonpath_ng/parser.py
- + tests/benchmarks/test_wildcard.py
- tests/jsonpath/test_slice.py
- + tests/jsonpath/wildcard/__init__.py
- tests/jsonpath/test_fields_wildcard.py → tests/jsonpath/wildcard/test_child_and_descendant.py
- + tests/jsonpath/wildcard/test_parsing.py
- + tests/jsonpath/wildcard/test_quoted_star.py
- + tests/jsonpath/wildcard/test_wildcard.py
- tests/test_examples.py
- tests/test_parser.py
- tests/test_v2_deprecations.py
- tox.ini
Changes:
=====================================
.gitignore
=====================================
@@ -15,3 +15,5 @@ __pycache__/
/htmlcov/
*.egg-info/
+
+/requirements/*/poetry.lock
=====================================
.readthedocs.yaml
=====================================
@@ -0,0 +1,15 @@
+version: 2
+
+build:
+ os: 'ubuntu-26.04'
+ tools:
+ python: '3.14'
+
+sphinx:
+ configuration: 'docs/conf.py'
+ builder: 'dirhtml'
+ fail_on_warning: true
+
+python:
+ install:
+ - requirements: 'requirements/docs/requirements.txt'
=====================================
CHANGELOG.rst
=====================================
@@ -10,6 +10,70 @@ CHANGELOG
.. scriv-insert-here
+.. _changelog-1.16.0:
+
+1.16.0 - 2026-11-04
+===================
+
+Breaking changes
+----------------
+
+* Parse an unquoted ``*`` to the new ``Wildcard()`` node.
+
+ ``$.*``, ``$[*]``, and ``$..*`` used to parse to ``Fields('*')`` or ``Slice()``.
+ Code that compares or inspects these parsed expressions must be updated.
+ The results of finding, updating, and filtering are unchanged.
+
+ This change can only affect code that first parses a JSONPath string
+ containing an unquoted wildcard character (``*``)
+ and then interacts with the resulting AST.
+
+Added
+-----
+
+* Add a ``Wildcard`` node that selects every child of an object or array.
+
+Fixed
+-----
+
+* Treat a quoted ``*`` as a field name, not as a wildcard.
+
+ Given an object like ``{"*": "multiply", "/": "divide"}``,
+ ``parse("$['*']").find(data)`` will now correctly return only ``["multiply"]``.
+
+* Fix empty slices acting like wildcards that select member values of objects.
+
+ RFC 9535 says that a slice selects nothing from a value that is not an array.
+ Given ``{"x": 1}``, ``parse("$[:]").find(data)`` now correctly returns ``[]``.
+ The same applies to updating and filtering.
+
+ This may break code that relied on ``[:]`` or ``[::]`` selecting object members.
+ Use ``[*]`` to select the members of an object.
+
+Deprecated
+----------
+
+* Deprecate interpreting ``Fields('*')`` as a wildcard.
+
+ ``Fields('*')`` continues to incorrectly act like a wildcard,
+ but in version 2.0.0 it will select only a field named ``*``.
+
+ Replace usages with ``Wildcard()``.
+
+* Deprecate interpreting ``Slice()`` with no parameters as a wildcard.
+
+ ``Slice()`` continues to incorrectly select member values of an object,
+ but in version 2.0.0 it will select nothing from an object.
+
+ Replace usages with ``Wildcard()``.
+
+Documentation
+-------------
+
+* Add Sphinx documentation, configured to build on Read the Docs.
+* Fix the JSON syntax of two README examples.
+* Remove several v1.5.0 changelog items that were duplicated from v1.4.3.
+
.. _changelog-1.15.0:
1.15.0 - 2026-10-29
@@ -49,7 +113,7 @@ Documentation
Fixed
-----
-* Fix parsing in executables created by PyInstaller. (#320)
+* Fix parsing in executables created by PyInstaller. (:issue:`320`)
Since v1.10.0, PLY tables have been pre-generated to improve performance.
However, PLY imports pre-generated modules via dynamic string lookups,
@@ -82,7 +146,7 @@ Documentation
Added
-----
-* Support the RFC 9535 logical operators ``&&`` and ``||`` in filters. (#27)
+* Support the RFC 9535 logical operators ``&&`` and ``||`` in filters. (:issue:`27`)
For example, ``parse("$[?@.a == 1 || @.b == 2 && @.c == 3]")``.
@@ -199,7 +263,7 @@ Documentation
Added
-----
-* Support a query on the right-hand side of a filter comparison. (#79)
+* Support a query on the right-hand side of a filter comparison. (:issue:`79`)
For example: ``$.items[?@.a == @.b]`` and ``$.items[?@.v == $.ref.v]``.
@@ -210,7 +274,7 @@ Added
Fixed
-----
-* Resolve ``$`` to the root node inside a filter. (#66)
+* Resolve ``$`` to the root node inside a filter. (:issue:`66`)
Previously, ``$`` was incorrectly treated as an alias of ``@``.
Use ``@`` to refer to the element being tested.
@@ -247,7 +311,7 @@ Breaking changes
This change improves RFC 9535 compliance.
-* Slices and the ``[*]`` wildcard no longer coerce scalars and objects into arrays. (#96)
+* Slices and the ``[*]`` wildcard no longer coerce scalars and objects into arrays. (:issue:`96`)
Previously, ``$[*]`` applied to ``"abc"`` or ``5`` would find the value itself,
and ``$[*]`` applied to ``{"a": 1}`` would find the whole object.
@@ -279,20 +343,20 @@ Fixed
These values now match nothing, as required by RFC 9535.
-* Fix ``..[*]`` omitting the member values of objects. (#96)
+* Fix ``..[*]`` omitting the member values of objects. (:issue:`96`)
-* Fix ``*`` (used as a field) omitting the elements of arrays. (#11, #164)
+* Fix ``*`` (used as a field) omitting the elements of arrays. (:issue:`11, 164`)
``$.*`` and ``$..*`` now find array elements as well as object member values.
``update()`` and ``filter()`` now also act on array elements for these wildcards.
-* Fix a parse error when a filter follows ``..``, as in ``$..[?@.key]``. (#46)
+* Fix a parse error when a filter follows ``..``, as in ``$..[?@.key]``. (:issue:`46`)
The path now parses and selects every matching array element or object member value
at any depth, as required by RFC 9535.
-* Allow filters to compare against JSON ``null`` values (``[?(@.v == null)]``). (#49)
+* Allow filters to compare against JSON ``null`` values (``[?(@.v == null)]``). (:issue:`49`)
An unquoted ``null`` no longer matches the string ``"null"``.
To compare a value to the word ``"null"``, quote it (``[?(@.v == 'null')]``).
@@ -354,7 +418,7 @@ Deprecated
Changed
-------
-* Use pre-generated PLY lex/parse tables. (#121)
+* Use pre-generated PLY lex/parse tables. (:issue:`121`)
Base parser instantiation is now over 20 times faster,
and extended parser instantiation is over 50 times faster.
@@ -407,7 +471,7 @@ Project administration
Fixed
-----
-- Add ``requires-python`` to the project metadata in ``pyproject.toml``. (#266)
+- Add ``requires-python`` to the project metadata in ``pyproject.toml``. (:issue:`266`)
This ensures the package can only be installed on supported Python versions.
@@ -433,25 +497,25 @@ Added
Fixed
-----
-- Ignore non-mapping values when updating named fields instead of raising ``TypeError`` (#104).
+- Ignore non-mapping values when updating named fields instead of raising ``TypeError``. (:issue:`104`)
- Return no matches for negative array indices beyond the start of an array,
- matching the behavior of out-of-range positive indices (#203).
+ matching the behavior of out-of-range positive indices. (:issue:`203`)
- Fix extended filter equality against an integer literal truncating float values,
- so ``[?(@.v = 0)]`` no longer matches an element with ``v = 0.6`` (#227).
+ so ``[?(@.v = 0)]`` no longer matches an element with ``v = 0.6``. (:issue:`227`)
-- ``update()`` with an in-place callback returning ``None`` no longer overwrites the field with ``None`` (#163)
+- ``update()`` with an in-place callback returning ``None`` no longer overwrites the field with ``None``. (:issue:`163`)
-- Fix an ``AttributeError`` that occurs when an ``Index`` instance is hashed. (#224)
+- Fix an ``AttributeError`` that occurs when an ``Index`` instance is hashed. (:issue:`224`)
- ``Index.find`` no longer raises ``KeyError`` when applied to a dict
(e.g. ``$.*[0]``, where ``*`` matched a dict value).
- It now matches nothing, as the docstring promises. (#93)
+ It now matches nothing, as the docstring promises. (:issue:`93`)
- Fix extended parser handling of field names that start with ``true`` or ``false``.
-- Stop serializing ``Child`` paths with surrounding parentheses. (#215)
+- Stop serializing ``Child`` paths with surrounding parentheses. (:issue:`215`)
- Avoid mutating dictionaries while evaluating extended filter expressions.
@@ -494,9 +558,9 @@ Fixed
-----
- ``[*]`` now correctly returns results when applied to a ``False`` or other falsy non-``None`` value;
- previously it returned an empty list (#198).
-- ``update()`` no longer raises ``TypeError`` when a value in the data structure is a boolean (#73).
-- ``update_or_create()`` now works correctly when the root data structure is a list (#108).
+ previously it returned an empty list. (:issue:`198`)
+- ``update()`` no longer raises ``TypeError`` when a value in the data structure is a boolean. (:issue:`73`)
+- ``update_or_create()`` now works correctly when the root data structure is a list. (:issue:`108`)
- Fix single constant case
- Update field filter to resolve wildcard path issue
- Vendor copy of ply and remove pickle support from the vendored copy to resolve `CVE-2025-56005 <https://nvd.nist.gov/vuln/detail/CVE-2025-56005>`__
@@ -535,7 +599,7 @@ Removed
- Remove Python 3.7 support
- Only construct the parse table once
- updated test for ``jsonpath.py`` changes
-- fix for Updating a json object fails if the value of a key is boolean #73
+- fix for Updating a json object fails if the value of a key is boolean (:issue:`73`)
- Add Codespaces configuration
- Add ``.editorconfig``
- Fix a GitHub workflow schema issue
@@ -601,8 +665,8 @@ Removed
- Enclose field names containing literals in quotes
- Add note about extensions
- Remove documentation status link
-- Update supported versions in setup.py
-- Add LICENSE file
+- Update supported versions in ``setup.py``
+- Add ``LICENSE`` file
- Code cleanup
- Remove dependency on six
- Update build status badge
@@ -612,29 +676,29 @@ Removed
- Escape back slashes in tests to avoid DeprecationWarning.
- Use raw strings for regular expressions to avoid DeprecationWarning.
- refactor(package): remove dependency for decorator
-- Merge pull request #128 from michaelmior/hashable
+- Merge pull request :pr:`128` from michaelmior/hashable
- Make path instances hashable
-- Merge pull request #122 from snopoke/snopoke-patch-1
+- Merge pull request :pr:`122` from snopoke/snopoke-patch-1
- Add more detail to filter docs.
- remove incorrect parenthesis in filter examples
-- Merge pull request #119 from snopoke/patch-1
+- Merge pull request :pr:`119` from snopoke/patch-1
- add 'sub' line with function param names
- readme formatting fixes
- chore(history): update
-- Update **init**.py
+- Update ``__init__.py``
.. _changelog-1.5.3:
1.5.3 - 2021-07-05
==================
-- Update **init**.py
-- Update setup.py
-- Merge pull request #72 from kaapstorm/find_or_create
+- Update ``__init__.py``
+- Update ``setup.py``
+- Merge pull request :pr:`72` from kaapstorm/find_or_create
- Tests
- Add ``update_or_create()`` method
-- Merge pull request #68 from kaapstorm/example_tests
-- Merge pull request #70 from kaapstorm/exceptions
+- Merge pull request :pr:`68` from kaapstorm/example_tests
+- Merge pull request :pr:`70` from kaapstorm/exceptions
- Add/fix ``__eq__()``
- Add tests based on Stefan Goessner's examples
- Tests
@@ -645,10 +709,10 @@ Removed
1.5.2 - 2020-09-07
==================
-- Merge pull request #41 from josephwhite13/allow-dictionary-filtering
-- Merge pull request #48 from back2root/master
+- Merge pull request :pr:`41` from josephwhite13/allow-dictionary-filtering
+- Merge pull request :pr:`48` from back2root/master
- Check for null value.
-- Merge pull request #40 from memborsky/add-regular-expression-contains-support
+- Merge pull request :pr:`40` from memborsky/add-regular-expression-contains-support
- feat: support regular expression for performing contains (=~) filtering
- if datum.value is a dictionary, filter on the list of values
@@ -666,46 +730,31 @@ Removed
==================
- feat(version): bump to 1,5.0
-- Merge pull request #13 from dcreemer/master
+- Merge pull request :pr:`13` from dcreemer/master
- fix(travis): remove python 3.4 (deprecated)
- refactor(docs): delete coverage badge
-- Merge pull request #25 from rahendatri/patch-1
-- Merge pull request #26 from guandalf/contains_operator
-- Merge pull request #31 from borysvorona/master
+- Merge pull request :pr:`25` from rahendatri/patch-1
+- Merge pull request :pr:`26` from guandalf/contains_operator
+- Merge pull request :pr:`31` from borysvorona/master
- refactor(travis): update python versions
-- Merge pull request #34 from dchourasia/patch-1
-- Updated Filter.py to implement update function
+- Merge pull request :pr:`34` from dchourasia/patch-1
+- Updated ``Filter.py`` to implement update function
- added hook for catching null value instead of empty list in path
- Ignore vscode folder
- Contains operator implementation
-- Update requirements-dev.txt
+- Update ``requirements-dev.txt``
- setuptools>=18.5
- update setuptools
- update cryptography
- new version of cryptography requires it
- entry point conflict with https://pypi.org/project/jsonpath/
-- add str() method
+- add ``str()`` method
- clean up
-- remove extra print()
+- remove extra ``print()``
- refactor(docs): remove codesponsor
- feat(docs): add sponsor banner
-- Update .travis.yml
+- Update ``.travis.yml``
- feat(History): add History file
-- fix(travis-ci): ignore versions
-- feat(requirements): add missing pytest-cov dependency
-- refactor(requirements): use version constraint
-- fix: remove .cache files
-- feat: add required files
-- fix(travis-ci): install proper packages
-- refactor(setup.py): update description
-- refactor(docs): remove downloads badge
-- fix(tests): pass unit tests
-- feat(docs): add TravisCI and PyPI badges
-- Merge pull request #2 from tomas-fp/master
-- feat(docs): update readme notes
-- feat(setup): increase version
-- Merge pull request #1 from kmmbvnr/patch-1
-- Fix github url on pypi
.. _changelog-1.4.3:
@@ -715,15 +764,15 @@ Removed
- fix(travis-ci): ignore versions
- feat(requirements): add missing pytest-cov dependency
- refactor(requirements): use version constraint
-- fix: remove .cache files
+- fix: remove ``.cache`` files
- feat: add required files
- fix(travis-ci): install proper packages
-- refactor(setup.py): update description
+- refactor(``setup.py``): update description
- refactor(docs): remove downloads badge
- fix(tests): pass unit tests
- feat(docs): add TravisCI and PyPI badges
-- Merge pull request #2 from tomas-fp/master
+- Merge pull request :pr:`2` from tomas-fp/master
- feat(docs): update readme notes
- feat(setup): increase version
-- Merge pull request #1 from kmmbvnr/patch-1
+- Merge pull request :pr:`1` from kmmbvnr/patch-1
- Fix github url on pypi
=====================================
README.rst
=====================================
@@ -76,9 +76,9 @@ Basic examples:
# You can also build expressions directly quite easily
>>> from jsonpath_ng.jsonpath import Fields
- >>> from jsonpath_ng.jsonpath import Slice
+ >>> from jsonpath_ng.jsonpath import Wildcard
- >>> parse('foo[*].baz') == Fields('foo').child(Slice()).child(Fields('baz'))
+ >>> parse('foo[*].baz') == Fields('foo').child(Wildcard()).child(Fields('baz'))
True
@@ -173,7 +173,7 @@ easy to do so directly, and here are some examples:
- ``Fields('foo', 'bar')``
- ``Index(42)``
- ``Child(Fields('foo'), Index(42))``
-- ``Where(Slice(), Fields('subfield'))``
+- ``Where(Wildcard(), Fields('subfield'))``
- ``Descendants(jsonpath, jsonpath)``
@@ -261,8 +261,8 @@ Example with data:
.. code-block:: json
{
- 'cow': 'foo',
- 'fish': 'bar'
+ "cow": "foo",
+ "fish": "bar"
}
| ``cow + fish`` returns ``cowfish``
@@ -279,9 +279,9 @@ Example with data:
.. code-block:: json
- {'objects': [
- {'cow': 2, 'cat': 3},
- {'cow': 4, 'cat': 6}
+ {"objects": [
+ {"cow": 2, "cat": 3},
+ {"cow": 4, "cat": 6}
]}
| ``$.objects[\*].cow + $.objects[\*].cat`` returns ``[6, 9]``
@@ -306,6 +306,7 @@ This package is authored and maintained by:
- `Kenn Knowles <https://github.com/kennknowles>`__
- `Tomas Aparicio <https://github.com/h2non>`__
+- `Kurt McKee <https://github.com/kurtmckee>`__
with the help of patches submitted by `these contributors <https://github.com/jsonpath-ng/jsonpath-ng/graphs/contributors>`__.
=====================================
pyproject.toml
=====================================
@@ -4,9 +4,10 @@ build-backend = "setuptools.build_meta"
[project]
name = "jsonpath-ng"
-version = "1.15.0"
+version = "1.16.0"
description="A final implementation of JSONPath for Python that aims to be standard compliant, including arithmetic and binary comparison operators and providing clear AST for metaprogramming."
authors = [
+ {name = "Kurt McKee", email = "contactme at kurtmckee.org"},
{name = "Tomas Aparicio", email = "tomas at aparicio.me"},
]
license = "Apache-2.0"
@@ -24,6 +25,8 @@ classifiers=[
]
[project.urls]
+Documentation = "https://jsonpath-ng.readthedocs.io/en/latest/"
+Changelog = "https://jsonpath-ng.readthedocs.io/en/latest/changelog/"
Source = "https://github.com/jsonpath-ng/jsonpath-ng"
[project.scripts]
=====================================
requirements/README.rst
=====================================
@@ -0,0 +1,51 @@
+``requirements/``
+#################
+
+This directory contains the files that manage dependencies for the project.
+
+At the time of writing, Poetry supports discrete dependency groups
+but always resolves dependencies coherently across all groups.
+However, in some cases, dependencies do not need to be coherently resolved;
+for example, Sphinx's dependencies do not need to be resolved
+together with the test suite's dependencies.
+
+Each subdirectory in this directory contains a ``pyproject.toml`` file
+with purpose-specific dependencies listed.
+
+
+How it's used
+=============
+
+Tox is configured to use the exported ``requirements.txt`` files as needed.
+In addition, Read the Docs is configured to use ``requirements/docs/requirements.txt``.
+This helps ensure reproducible documentation builds.
+
+
+How it's updated
+================
+
+A tox label, ``update``, ensures that dependencies can be easily updated,
+and that ``requirements.txt`` files are consistently re-exported.
+
+This can be invoked by running:
+
+.. code-block::
+
+ tox run -m update
+
+
+How to add dependencies
+=======================
+
+New dependencies can be added to a given subdirectory's ``pyproject.toml``
+by either manually modifying the file, or by running a command like:
+
+.. code-block::
+
+ poetry add --lock --directory "requirements/$DIR" $DEPENDENCY_NAME
+
+Either way, the dependencies must be re-exported:
+
+.. code-block::
+
+ tox run -m update
=====================================
requirements/docs/pyproject.toml
=====================================
@@ -0,0 +1,10 @@
+[tool.poetry]
+package-mode = false
+
+[project]
+name = "dependencies"
+requires-python = ">=3.11"
+dependencies = [
+ "sphinx",
+ "sphinx_issues",
+]
=====================================
requirements/docs/requirements.txt
=====================================
@@ -0,0 +1,24 @@
+alabaster==1.0.0 ; python_version >= "3.11"
+babel==2.18.0 ; python_version >= "3.11"
+certifi==2026.10.23 ; python_version >= "3.11"
+charset-normalizer==3.5.2 ; python_version >= "3.11"
+colorama==0.4.6 ; python_version >= "3.11" and sys_platform == "win32"
+docutils==0.22.4 ; python_version >= "3.11"
+idna==3.20 ; python_version >= "3.11"
+imagesize==2.0.1 ; python_version >= "3.11"
+jinja2==3.1.6 ; python_version >= "3.11"
+markupsafe==3.0.4 ; python_version >= "3.11"
+packaging==26.3 ; python_version >= "3.11"
+pygments==2.21.0 ; python_version >= "3.11"
+requests==2.34.2 ; python_version >= "3.11"
+roman-numerals==4.1.0 ; python_version >= "3.11"
+snowballstemmer==3.1.1 ; python_version >= "3.11"
+sphinx-issues==6.0.0 ; python_version >= "3.11"
+sphinx==9.0.4 ; python_version >= "3.11"
+sphinxcontrib-applehelp==2.0.0 ; python_version >= "3.11"
+sphinxcontrib-devhelp==2.0.0 ; python_version >= "3.11"
+sphinxcontrib-htmlhelp==2.1.0 ; python_version >= "3.11"
+sphinxcontrib-jsmath==2.0.0 ; python_version >= "3.11"
+sphinxcontrib-qthelp==2.0.0 ; python_version >= "3.11"
+sphinxcontrib-serializinghtml==2.0.0 ; python_version >= "3.11"
+urllib3==2.8.0 ; python_version >= "3.11"
=====================================
src/jsonpath_ng/_ply_tables/ext_parser_table.py
=====================================
@@ -6,9 +6,9 @@ _tabversion = '3.10'
_lr_method = 'LALR'
-_lr_signature = "jsonpathleft+-left*/left,leftDOUBLEDOTleft.left|left&leftWHEREleftWHERENOTnonassocIDAND BOOL DOUBLEDOT FILTER_OP FLOAT ID NAMED_OPERATOR NULL NUMBER OR SORT_DIRECTION WHERE WHERENOTjsonpath : jsonpath '.' jsonpath\n| jsonpath DOUBLEDOT jsonpath\n| jsonpath WHERE jsonpath\n| jsonpath WHERENOT jsonpath\n| jsonpath '|' jsonpath\n| jsonpath '&' jsonpathjsonpath : NUMBER operator NUMBER\n| FLOAT operator FLOAT\n| ID operator ID\n| NUMBER operator jsonpath\n| FLOAT operator jsonpath\n| jsonpath operator NUMBER\n| jsonpath operator FLOAT\n| jsonpath operator jsonpath\njsonpath : fields_or_anyoperator : '+'\n| '-'\n| '*'\n| '/'\njsonpath : NAMED_OPERATORjsonpath : '$'jsonpath : '[' idx ']'jsonpath : '[' slice ']'jsonpath : '[' fields ']'jsonpath : jsonpath '[' fields ']'expression : jsonpath\n| jsonpath FILTER_OP ID\n| jsonpath FILTER_OP FLOAT\n| jsonpath FILTER_OP NUMBER\n| jsonpath FILTER_OP BOOL\n| jsonpath FILTER_OP NULL\n| jsonpath FILTER_OP singular_query\njsonpath : jsonpath '[' idx ']'jsonpath : jsonpath '[' slice ']'jsonpath : '(' jsonpath ')'fields_or_any : fields\n| '*'\n| NUMBERfields : IDfields : fields ',' fieldssingular_query : '@'\n| '$'\nidx : NUMBERsingular_query : singular_query '.' singular_nameidx : idx ',' idxsingular_query : singular_query '[' ID ']'slice : '*'singular_query : singular_query '[' NUMBER ']'slice : maybe_int ':' maybe_int\n| maybe_int ':' maybe_int ':' maybe_intsingular_name : ID\n| NULL\n| BOOL\nmaybe_int : NUMBER\n| emptyempty :fields : NULLfields : BOOLexpression : '!' jsonpathexpressions : and_expressionsexpressions : expressions OR and_expressionsand_expressions : operandand_expressions : and_expressions AND operandand_expressions : and_expressions '&' operandoperand : expressionoperand : '(' expressions ')'filter : '?' expressionsjsonpath : jsonpath '[' filter ']'jsonpath : jsonpath DOUBLEDOT '[' filter ']'sort : SORT_DIRECTION jsonpathsorts : sortsorts : sorts sortsjsonpath : jsonpath '[' sorts ']'jsonpath : '@'"
+_lr_signature = "jsonpathleft+-left*/left,leftDOUBLEDOTleft.left|left&leftWHEREleftWHERENOTnonassocIDAND BOOL DOUBLEDOT FILTER_OP FLOAT ID NAMED_OPERATOR NULL NUMBER OR SORT_DIRECTION WHERE WHERENOTjsonpath : jsonpath '.' jsonpath\n| jsonpath DOUBLEDOT jsonpath\n| jsonpath WHERE jsonpath\n| jsonpath WHERENOT jsonpath\n| jsonpath '|' jsonpath\n| jsonpath '&' jsonpathjsonpath : NUMBER operator NUMBER\n| FLOAT operator FLOAT\n| ID operator ID\n| NUMBER operator jsonpath\n| FLOAT operator jsonpath\n| jsonpath operator NUMBER\n| jsonpath operator FLOAT\n| jsonpath operator jsonpath\njsonpath : fields_or_anyoperator : '+'\n| '-'\n| '*'\n| '/'\njsonpath : NAMED_OPERATORjsonpath : '$'jsonpath : '[' idx ']'jsonpath : '[' slice ']'jsonpath : '[' fields ']'expression : jsonpath\n| jsonpath FILTER_OP ID\n| jsonpath FILTER_OP FLOAT\n| jsonpath FILTER_OP NUMBER\n| jsonpath FILTER_OP BOOL\n| jsonpath FILTER_OP NULL\n| jsonpath FILTER_OP singular_query\njsonpath : jsonpath '[' fields ']'jsonpath : jsonpath '[' idx ']'jsonpath : jsonpath '[' slice ']'jsonpath : '(' jsonpath ')'fields_or_any : fields\n| '*'\n| NUMBERsingular_query : '@'\n| '$'\nfields : IDfields : fields ',' fieldssingular_query : singular_query '.' singular_nameidx : NUMBERsingular_query : singular_query '[' ID ']'idx : idx ',' idxslice : '*'singular_query : singular_query '[' NUMBER ']'slice : maybe_int ':' maybe_int\n| maybe_int ':' maybe_int ':' maybe_intsingular_name : ID\n| NULL\n| BOOL\nmaybe_int : NUMBER\n| emptyempty :fields : NULLfields : BOOLexpression : '!' jsonpathexpressions : and_expressionsexpressions : expressions OR and_expressionsand_expressions : operandand_expressions : and_expressions AND operandand_expressions : and_expressions '&' operandoperand : expressionoperand : '(' expressions ')'filter : '?' expressionsjsonpath : jsonpath '[' filter ']'jsonpath : jsonpath DOUBLEDOT '[' filter ']'sort : SORT_DIRECTION jsonpathsorts : sortsorts : sorts sortsjsonpath : jsonpath '[' sorts ']'jsonpath : '@'"
-_lr_action_items = {'NUMBER':([0,8,10,15,16,17,18,19,20,21,22,23,24,25,26,27,28,42,55,57,64,67,81,83,90,91,92,93,96,98,113,],[2,33,2,2,2,2,2,2,2,48,33,-16,-17,-18,-19,58,2,33,2,2,86,88,2,2,2,2,2,2,105,88,119,]),'FLOAT':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,96,],[3,3,3,3,3,3,3,3,49,-16,-17,-18,-19,3,60,3,3,3,3,3,3,3,3,104,]),'ID':([0,8,10,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,38,42,55,57,81,83,90,91,92,93,96,112,113,],[4,36,4,4,4,4,4,4,4,4,36,-16,-17,-18,-19,4,4,62,36,36,4,4,4,4,4,4,4,4,103,115,118,]),'NAMED_OPERATOR':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,],[6,6,6,6,6,6,6,6,6,-16,-17,-18,-19,6,6,6,6,6,6,6,6,6,6,]),'$':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,96,],[7,7,7,7,7,7,7,7,7,-16,-17,-18,-19,7,7,7,7,7,7,7,7,7,7,110,]),'[':([0,1,2,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,36,39,40,41,43,44,45,46,47,48,49,55,57,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,81,82,83,84,89,90,91,92,93,95,97,108,109,110,114,115,116,117,120,121,],[8,22,-38,-39,-15,-20,-21,-36,8,-74,-37,-57,-58,8,42,8,8,8,8,8,-16,-17,-18,-19,8,8,-39,22,-1,-2,-3,-4,-5,-6,22,-12,-13,8,8,-7,22,-8,22,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,8,22,8,22,-69,8,8,8,8,22,22,113,-41,-42,-44,-51,-52,-53,-46,-48,]),'(':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,],[10,10,10,10,10,10,10,10,10,-16,-17,-18,-19,10,10,81,10,93,10,81,81,81,93,]),'@':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,96,],[11,11,11,11,11,11,11,11,11,-16,-17,-18,-19,11,11,11,11,11,11,11,11,11,11,109,]),'*':([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,36,39,40,41,42,43,44,45,46,47,48,49,55,57,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,81,82,83,84,89,90,91,92,93,95,97,],[12,25,25,25,-39,-15,-20,-21,34,-36,12,-74,-37,-57,-58,12,12,12,12,12,12,12,34,-16,-17,-18,-19,12,12,-39,25,-1,-2,34,-3,-4,-5,-6,25,25,25,12,12,25,25,25,25,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,12,25,12,25,-69,12,12,12,12,25,25,]),'NULL':([0,8,10,15,16,17,18,19,20,21,22,23,24,25,26,27,28,38,42,55,57,81,83,90,91,92,93,96,112,],[13,13,13,13,13,13,13,13,13,13,13,-16,-17,-18,-19,13,13,13,13,13,13,13,13,13,13,13,13,107,116,]),'BOOL':([0,8,10,15,16,17,18,19,20,21,22,23,24,25,26,27,28,38,42,55,57,81,83,90,91,92,93,96,112,],[14,14,14,14,14,14,14,14,14,14,14,-16,-17,-18,-19,14,14,14,14,14,14,14,14,14,14,14,14,106,117,]),'$end':([1,2,4,5,6,7,9,11,12,13,14,36,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,89,],[0,-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,-69,]),'.':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,108,109,110,114,115,116,117,120,121,],[15,-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,15,-1,15,-3,-4,-5,-6,15,-12,-13,-7,15,-8,15,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,15,15,-69,15,15,112,-41,-42,-44,-51,-52,-53,-46,-48,]),'DOUBLEDOT':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[16,-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,16,-1,-2,-3,-4,-5,-6,16,-12,-13,-7,16,-8,16,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,16,16,-69,16,16,]),'WHERE':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[17,-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,17,17,17,-3,-4,17,17,17,-12,-13,-7,17,-8,17,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,17,17,-69,17,17,]),'WHERENOT':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[18,-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,18,18,18,18,-4,18,18,18,-12,-13,-7,18,-8,18,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,18,18,-69,18,18,]),'|':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[19,-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,19,19,19,-3,-4,-5,-6,19,-12,-13,-7,19,-8,19,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,19,19,-69,19,19,]),'&':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,78,79,80,82,84,89,95,97,99,100,101,102,103,104,105,106,107,108,109,110,114,115,116,117,120,121,],[20,-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,20,20,20,-3,-4,20,-6,20,-12,-13,-7,20,-8,20,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,92,-62,-65,20,20,-69,20,20,92,-63,-64,-66,-27,-28,-29,-30,-31,-32,-41,-42,-44,-51,-52,-53,-46,-48,]),'+':([1,2,3,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[23,23,23,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,23,-1,-2,-3,-4,-5,-6,23,23,23,23,23,23,23,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,23,23,-69,23,23,]),'-':([1,2,3,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[24,24,24,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,24,-1,-2,-3,-4,-5,-6,24,24,24,24,24,24,24,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,24,24,-69,24,24,]),'/':([1,2,3,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[26,26,26,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,26,-1,-2,-3,-4,-5,-6,26,26,26,26,26,26,26,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,26,26,-69,26,26,]),')':([2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,78,79,80,82,89,94,95,97,99,100,101,102,103,104,105,106,107,108,109,110,114,115,116,117,120,121,],[-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,69,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,-60,-62,-65,-26,-69,102,69,-59,-61,-63,-64,-66,-27,-28,-29,-30,-31,-32,-41,-42,-44,-51,-52,-53,-46,-48,]),'FILTER_OP':([2,4,5,6,7,9,11,12,13,14,36,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,89,95,],[-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,96,-69,96,]),'AND':([2,4,5,6,7,9,11,12,13,14,36,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,78,79,80,82,89,95,97,99,100,101,102,103,104,105,106,107,108,109,110,114,115,116,117,120,121,],[-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,91,-62,-65,-26,-69,-26,-59,91,-63,-64,-66,-27,-28,-29,-30,-31,-32,-41,-42,-44,-51,-52,-53,-46,-48,]),'OR':([2,4,5,6,7,9,11,12,13,14,36,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,77,78,79,80,82,89,94,95,97,99,100,101,102,103,104,105,106,107,108,109,110,114,115,116,117,120,121,],[-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,-39,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,-73,90,-60,-62,-65,-26,-69,90,-26,-59,-61,-63,-64,-66,-27,-28,-29,-30,-31,-32,-41,-42,-44,-51,-52,-53,-46,-48,]),']':([2,4,5,6,7,9,11,12,13,14,30,31,32,33,34,36,37,40,41,43,44,45,46,47,48,49,50,51,52,53,54,56,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,82,84,85,86,87,88,89,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,114,115,116,117,118,119,120,121,],[-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,63,65,66,-43,-47,-39,-55,-1,-2,-3,-4,-5,-6,-14,-12,-13,71,72,73,74,76,-71,-7,-10,-8,-11,-9,-22,-23,-24,-56,-40,-35,89,-25,-33,-34,-68,-72,-73,-67,-60,-62,-65,-26,-70,-45,-43,-49,-54,-69,-59,-56,-61,-63,-64,-66,-27,-28,-29,-30,-31,-32,-41,-42,-50,-44,-51,-52,-53,120,121,-46,-48,]),'SORT_DIRECTION':([2,4,5,6,7,9,11,12,13,14,22,36,40,41,43,44,45,46,47,48,49,54,56,58,59,60,61,62,63,65,66,68,69,71,72,73,74,75,76,84,89,],[-38,-39,-15,-20,-21,-36,-74,-37,-57,-58,57,-39,-1,-2,-3,-4,-5,-6,-14,-12,-13,57,-71,-7,-10,-8,-11,-9,-22,-23,-24,-40,-35,-25,-33,-34,-68,57,-73,-70,-69,]),',':([4,9,13,14,30,32,33,36,50,51,68,85,86,],[-39,38,-57,-58,64,38,-43,-39,38,64,-40,-45,-43,]),':':([8,22,33,35,37,42,67,87,88,],[-56,-56,-54,67,-55,-56,-56,98,-54,]),'?':([22,42,],[55,55,]),'!':([55,81,90,91,92,93,],[83,83,83,83,83,83,]),}
+_lr_action_items = {'NUMBER':([0,8,10,15,16,17,18,19,20,21,22,23,24,25,26,27,28,42,55,57,64,67,81,83,90,91,92,93,96,98,113,],[2,33,2,2,2,2,2,2,2,48,33,-16,-17,-18,-19,58,2,33,2,2,86,88,2,2,2,2,2,2,105,88,119,]),'FLOAT':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,96,],[3,3,3,3,3,3,3,3,49,-16,-17,-18,-19,3,60,3,3,3,3,3,3,3,3,104,]),'ID':([0,8,10,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,38,42,55,57,81,83,90,91,92,93,96,112,113,],[4,36,4,4,4,4,4,4,4,4,36,-16,-17,-18,-19,4,4,62,36,36,4,4,4,4,4,4,4,4,103,115,118,]),'NAMED_OPERATOR':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,],[6,6,6,6,6,6,6,6,6,-16,-17,-18,-19,6,6,6,6,6,6,6,6,6,6,]),'$':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,96,],[7,7,7,7,7,7,7,7,7,-16,-17,-18,-19,7,7,7,7,7,7,7,7,7,7,110,]),'[':([0,1,2,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,36,39,40,41,43,44,45,46,47,48,49,55,57,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,81,82,83,84,89,90,91,92,93,95,97,108,109,110,114,115,116,117,120,121,],[8,22,-38,-41,-15,-20,-21,-36,8,-74,-37,-57,-58,8,42,8,8,8,8,8,-16,-17,-18,-19,8,8,-41,22,-1,-2,-3,-4,-5,-6,22,-12,-13,8,8,-7,22,-8,22,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,8,22,8,22,-69,8,8,8,8,22,22,113,-39,-40,-43,-51,-52,-53,-45,-48,]),'(':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,],[10,10,10,10,10,10,10,10,10,-16,-17,-18,-19,10,10,81,10,93,10,81,81,81,93,]),'@':([0,10,15,16,17,18,19,20,21,23,24,25,26,27,28,55,57,81,83,90,91,92,93,96,],[11,11,11,11,11,11,11,11,11,-16,-17,-18,-19,11,11,11,11,11,11,11,11,11,11,109,]),'*':([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,36,39,40,41,42,43,44,45,46,47,48,49,55,57,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,81,82,83,84,89,90,91,92,93,95,97,],[12,25,25,25,-41,-15,-20,-21,34,-36,12,-74,-37,-57,-58,12,12,12,12,12,12,12,34,-16,-17,-18,-19,12,12,-41,25,-1,-2,34,-3,-4,-5,-6,25,25,25,12,12,25,25,25,25,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,12,25,12,25,-69,12,12,12,12,25,25,]),'NULL':([0,8,10,15,16,17,18,19,20,21,22,23,24,25,26,27,28,38,42,55,57,81,83,90,91,92,93,96,112,],[13,13,13,13,13,13,13,13,13,13,13,-16,-17,-18,-19,13,13,13,13,13,13,13,13,13,13,13,13,107,116,]),'BOOL':([0,8,10,15,16,17,18,19,20,21,22,23,24,25,26,27,28,38,42,55,57,81,83,90,91,92,93,96,112,],[14,14,14,14,14,14,14,14,14,14,14,-16,-17,-18,-19,14,14,14,14,14,14,14,14,14,14,14,14,106,117,]),'$end':([1,2,4,5,6,7,9,11,12,13,14,36,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,89,],[0,-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,-69,]),'.':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,108,109,110,114,115,116,117,120,121,],[15,-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,15,-1,15,-3,-4,-5,-6,15,-12,-13,-7,15,-8,15,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,15,15,-69,15,15,112,-39,-40,-43,-51,-52,-53,-45,-48,]),'DOUBLEDOT':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[16,-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,16,-1,-2,-3,-4,-5,-6,16,-12,-13,-7,16,-8,16,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,16,16,-69,16,16,]),'WHERE':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[17,-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,17,17,17,-3,-4,17,17,17,-12,-13,-7,17,-8,17,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,17,17,-69,17,17,]),'WHERENOT':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[18,-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,18,18,18,18,-4,18,18,18,-12,-13,-7,18,-8,18,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,18,18,-69,18,18,]),'|':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[19,-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,19,19,19,-3,-4,-5,-6,19,-12,-13,-7,19,-8,19,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,19,19,-69,19,19,]),'&':([1,2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,78,79,80,82,84,89,95,97,99,100,101,102,103,104,105,106,107,108,109,110,114,115,116,117,120,121,],[20,-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,20,20,20,-3,-4,20,-6,20,-12,-13,-7,20,-8,20,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,92,-62,-65,20,20,-69,20,20,92,-63,-64,-66,-26,-27,-28,-29,-30,-31,-39,-40,-43,-51,-52,-53,-45,-48,]),'+':([1,2,3,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[23,23,23,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,23,-1,-2,-3,-4,-5,-6,23,23,23,23,23,23,23,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,23,23,-69,23,23,]),'-':([1,2,3,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[24,24,24,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,24,-1,-2,-3,-4,-5,-6,24,24,24,24,24,24,24,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,24,24,-69,24,24,]),'/':([1,2,3,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,84,89,95,97,],[26,26,26,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,26,-1,-2,-3,-4,-5,-6,26,26,26,26,26,26,26,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,26,26,-69,26,26,]),')':([2,4,5,6,7,9,11,12,13,14,36,39,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,78,79,80,82,89,94,95,97,99,100,101,102,103,104,105,106,107,108,109,110,114,115,116,117,120,121,],[-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,69,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,-60,-62,-65,-25,-69,102,69,-59,-61,-63,-64,-66,-26,-27,-28,-29,-30,-31,-39,-40,-43,-51,-52,-53,-45,-48,]),'FILTER_OP':([2,4,5,6,7,9,11,12,13,14,36,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,82,89,95,],[-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,96,-69,96,]),'AND':([2,4,5,6,7,9,11,12,13,14,36,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,78,79,80,82,89,95,97,99,100,101,102,103,104,105,106,107,108,109,110,114,115,116,117,120,121,],[-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,91,-62,-65,-25,-69,-25,-59,91,-63,-64,-66,-26,-27,-28,-29,-30,-31,-39,-40,-43,-51,-52,-53,-45,-48,]),'OR':([2,4,5,6,7,9,11,12,13,14,36,40,41,43,44,45,46,47,48,49,58,59,60,61,62,63,65,66,68,69,71,72,73,74,76,77,78,79,80,82,89,94,95,97,99,100,101,102,103,104,105,106,107,108,109,110,114,115,116,117,120,121,],[-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,-41,-1,-2,-3,-4,-5,-6,-14,-12,-13,-7,-10,-8,-11,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,-73,90,-60,-62,-65,-25,-69,90,-25,-59,-61,-63,-64,-66,-26,-27,-28,-29,-30,-31,-39,-40,-43,-51,-52,-53,-45,-48,]),']':([2,4,5,6,7,9,11,12,13,14,30,31,32,33,34,36,37,40,41,43,44,45,46,47,48,49,50,51,52,53,54,56,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,82,84,85,86,87,88,89,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,114,115,116,117,118,119,120,121,],[-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,63,65,66,-44,-47,-41,-55,-1,-2,-3,-4,-5,-6,-14,-12,-13,71,72,73,74,76,-71,-7,-10,-8,-11,-9,-22,-23,-24,-56,-42,-35,89,-32,-33,-34,-68,-72,-73,-67,-60,-62,-65,-25,-70,-46,-44,-49,-54,-69,-59,-56,-61,-63,-64,-66,-26,-27,-28,-29,-30,-31,-39,-40,-50,-43,-51,-52,-53,120,121,-45,-48,]),'SORT_DIRECTION':([2,4,5,6,7,9,11,12,13,14,22,36,40,41,43,44,45,46,47,48,49,54,56,58,59,60,61,62,63,65,66,68,69,71,72,73,74,75,76,84,89,],[-38,-41,-15,-20,-21,-36,-74,-37,-57,-58,57,-41,-1,-2,-3,-4,-5,-6,-14,-12,-13,57,-71,-7,-10,-8,-11,-9,-22,-23,-24,-42,-35,-32,-33,-34,-68,57,-73,-70,-69,]),',':([4,9,13,14,30,32,33,36,50,51,68,85,86,],[-41,38,-57,-58,64,38,-44,-41,38,64,-42,-46,-44,]),':':([8,22,33,35,37,42,67,87,88,],[-56,-56,-54,67,-55,-56,-56,98,-54,]),'?':([22,42,],[55,55,]),'!':([55,81,90,91,92,93,],[83,83,83,83,83,83,]),}
_lr_action = {}
for _k, _v in _lr_action_items.items():
@@ -27,12 +27,12 @@ for _k, _v in _lr_goto_items.items():
del _lr_goto_items
_lr_productions = [
("S' -> jsonpath","S'",1,None,None,None),
- ('jsonpath -> jsonpath . jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',105),
- ('jsonpath -> jsonpath DOUBLEDOT jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',106),
- ('jsonpath -> jsonpath WHERE jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',107),
- ('jsonpath -> jsonpath WHERENOT jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',108),
- ('jsonpath -> jsonpath | jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',109),
- ('jsonpath -> jsonpath & jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',110),
+ ('jsonpath -> jsonpath . jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',106),
+ ('jsonpath -> jsonpath DOUBLEDOT jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',107),
+ ('jsonpath -> jsonpath WHERE jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',108),
+ ('jsonpath -> jsonpath WHERENOT jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',109),
+ ('jsonpath -> jsonpath | jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',110),
+ ('jsonpath -> jsonpath & jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',111),
('jsonpath -> NUMBER operator NUMBER','jsonpath',3,'p_jsonpath_operator_jsonpath','parser.py',121),
('jsonpath -> FLOAT operator FLOAT','jsonpath',3,'p_jsonpath_operator_jsonpath','parser.py',122),
('jsonpath -> ID operator ID','jsonpath',3,'p_jsonpath_operator_jsonpath','parser.py',123),
@@ -41,17 +41,16 @@ _lr_productions = [
('jsonpath -> jsonpath operator NUMBER','jsonpath',3,'p_jsonpath_operator_jsonpath','parser.py',126),
('jsonpath -> jsonpath operator FLOAT','jsonpath',3,'p_jsonpath_operator_jsonpath','parser.py',127),
('jsonpath -> jsonpath operator jsonpath','jsonpath',3,'p_jsonpath_operator_jsonpath','parser.py',128),
- ('jsonpath -> fields_or_any','jsonpath',1,'p_jsonpath_fields','parser.py',137),
+ ('jsonpath -> fields_or_any','jsonpath',1,'p_jsonpath_fields','parser.py',138),
('operator -> +','operator',1,'p_operator','parser.py',142),
('operator -> -','operator',1,'p_operator','parser.py',143),
('operator -> *','operator',1,'p_operator','parser.py',144),
('operator -> /','operator',1,'p_operator','parser.py',145),
('jsonpath -> NAMED_OPERATOR','jsonpath',1,'p_jsonpath_named_operator','parser.py',150),
- ('jsonpath -> $','jsonpath',1,'p_jsonpath_root','parser.py',153),
- ('jsonpath -> [ idx ]','jsonpath',3,'p_jsonpath_idx','parser.py',157),
- ('jsonpath -> [ slice ]','jsonpath',3,'p_jsonpath_slice','parser.py',161),
- ('jsonpath -> [ fields ]','jsonpath',3,'p_jsonpath_fieldbrackets','parser.py',165),
- ('jsonpath -> jsonpath [ fields ]','jsonpath',4,'p_jsonpath_child_fieldbrackets','parser.py',169),
+ ('jsonpath -> $','jsonpath',1,'p_jsonpath_root','parser.py',157),
+ ('jsonpath -> [ idx ]','jsonpath',3,'p_jsonpath_idx','parser.py',161),
+ ('jsonpath -> [ slice ]','jsonpath',3,'p_jsonpath_slice','parser.py',165),
+ ('jsonpath -> [ fields ]','jsonpath',3,'p_jsonpath_fieldbrackets','parser.py',169),
('expression -> jsonpath','expression',1,'p_expression','parser.py',170),
('expression -> jsonpath FILTER_OP ID','expression',3,'p_expression','parser.py',171),
('expression -> jsonpath FILTER_OP FLOAT','expression',3,'p_expression','parser.py',172),
@@ -59,46 +58,47 @@ _lr_productions = [
('expression -> jsonpath FILTER_OP BOOL','expression',3,'p_expression','parser.py',174),
('expression -> jsonpath FILTER_OP NULL','expression',3,'p_expression','parser.py',175),
('expression -> jsonpath FILTER_OP singular_query','expression',3,'p_expression','parser.py',176),
- ('jsonpath -> jsonpath [ idx ]','jsonpath',4,'p_jsonpath_child_idxbrackets','parser.py',173),
- ('jsonpath -> jsonpath [ slice ]','jsonpath',4,'p_jsonpath_child_slicebrackets','parser.py',177),
- ('jsonpath -> ( jsonpath )','jsonpath',3,'p_jsonpath_parens','parser.py',181),
- ('fields_or_any -> fields','fields_or_any',1,'p_fields_or_any','parser.py',186),
- ('fields_or_any -> *','fields_or_any',1,'p_fields_or_any','parser.py',187),
- ('fields_or_any -> NUMBER','fields_or_any',1,'p_fields_or_any','parser.py',188),
- ('fields -> ID','fields',1,'p_fields_id','parser.py',198),
- ('fields -> fields , fields','fields',3,'p_fields_comma','parser.py',202),
+ ('jsonpath -> jsonpath [ fields ]','jsonpath',4,'p_jsonpath_child_fieldbrackets','parser.py',173),
+ ('jsonpath -> jsonpath [ idx ]','jsonpath',4,'p_jsonpath_child_idxbrackets','parser.py',180),
+ ('jsonpath -> jsonpath [ slice ]','jsonpath',4,'p_jsonpath_child_slicebrackets','parser.py',184),
+ ('jsonpath -> ( jsonpath )','jsonpath',3,'p_jsonpath_parens','parser.py',188),
+ ('fields_or_any -> fields','fields_or_any',1,'p_fields_or_any','parser.py',194),
+ ('fields_or_any -> *','fields_or_any',1,'p_fields_or_any','parser.py',195),
+ ('fields_or_any -> NUMBER','fields_or_any',1,'p_fields_or_any','parser.py',196),
('singular_query -> @','singular_query',1,'p_singular_query_identifier','parser.py',204),
('singular_query -> $','singular_query',1,'p_singular_query_identifier','parser.py',205),
- ('idx -> NUMBER','idx',1,'p_idx','parser.py',208),
+ ('fields -> ID','fields',1,'p_fields_id','parser.py',206),
+ ('fields -> fields , fields','fields',3,'p_fields_comma','parser.py',210),
('singular_query -> singular_query . singular_name','singular_query',3,'p_singular_query_name','parser.py',212),
- ('idx -> idx , idx','idx',3,'p_idx_comma','parser.py',212),
- ('singular_query -> singular_query [ ID ]','singular_query',4,'p_singular_query_bracketed_name','parser.py',216),
- ('slice -> *','slice',1,'p_slice_any','parser.py',216),
- ('singular_query -> singular_query [ NUMBER ]','singular_query',4,'p_singular_query_index','parser.py',220),
- ('slice -> maybe_int : maybe_int','slice',3,'p_slice','parser.py',220),
- ('slice -> maybe_int : maybe_int : maybe_int','slice',5,'p_slice','parser.py',221),
- ('singular_name -> ID','singular_name',1,'p_singular_name','parser.py',224),
- ('singular_name -> NULL','singular_name',1,'p_singular_name','parser.py',225),
- ('singular_name -> BOOL','singular_name',1,'p_singular_name','parser.py',226),
- ('maybe_int -> NUMBER','maybe_int',1,'p_maybe_int','parser.py',225),
- ('maybe_int -> empty','maybe_int',1,'p_maybe_int','parser.py',226),
- ('empty -> <empty>','empty',0,'p_empty','parser.py',230),
- ('fields -> NULL','fields',1,'p_fields_null','parser.py',236),
- ('fields -> BOOL','fields',1,'p_fields_bool','parser.py',241),
- ('expression -> ! jsonpath','expression',2,'p_expression_not','parser.py',247),
- ('expressions -> and_expressions','expressions',1,'p_expressions_and_expressions','parser.py',261),
- ('expressions -> expressions OR and_expressions','expressions',3,'p_expressions_or','parser.py',265),
- ('and_expressions -> operand','and_expressions',1,'p_and_expressions_operand','parser.py',279),
- ('and_expressions -> and_expressions AND operand','and_expressions',3,'p_and_expressions_and','parser.py',283),
- ('and_expressions -> and_expressions & operand','and_expressions',3,'p_and_expressions_ampersand','parser.py',287),
- ('operand -> expression','operand',1,'p_operand_expression','parser.py',296),
- ('operand -> ( expressions )','operand',3,'p_operand_parens','parser.py',300),
- ('filter -> ? expressions','filter',2,'p_filter','parser.py',304),
- ('jsonpath -> jsonpath [ filter ]','jsonpath',4,'p_jsonpath_filter','parser.py',308),
- ('jsonpath -> jsonpath DOUBLEDOT [ filter ]','jsonpath',5,'p_jsonpath_descendant_filter','parser.py',312),
- ('sort -> SORT_DIRECTION jsonpath','sort',2,'p_sort','parser.py',316),
- ('sorts -> sort','sorts',1,'p_sorts_sort','parser.py',320),
- ('sorts -> sorts sorts','sorts',2,'p_sorts_comma','parser.py',324),
- ('jsonpath -> jsonpath [ sorts ]','jsonpath',4,'p_jsonpath_sort','parser.py',330),
- ('jsonpath -> @','jsonpath',1,'p_jsonpath_this','parser.py',335),
+ ('idx -> NUMBER','idx',1,'p_idx','parser.py',216),
+ ('singular_query -> singular_query [ ID ]','singular_query',4,'p_singular_query_bracketed_name','parser.py',219),
+ ('idx -> idx , idx','idx',3,'p_idx_comma','parser.py',220),
+ ('slice -> *','slice',1,'p_slice_any','parser.py',224),
+ ('singular_query -> singular_query [ NUMBER ]','singular_query',4,'p_singular_query_index','parser.py',226),
+ ('slice -> maybe_int : maybe_int','slice',3,'p_slice','parser.py',228),
+ ('slice -> maybe_int : maybe_int : maybe_int','slice',5,'p_slice','parser.py',229),
+ ('singular_name -> ID','singular_name',1,'p_singular_name','parser.py',230),
+ ('singular_name -> NULL','singular_name',1,'p_singular_name','parser.py',231),
+ ('singular_name -> BOOL','singular_name',1,'p_singular_name','parser.py',232),
+ ('maybe_int -> NUMBER','maybe_int',1,'p_maybe_int','parser.py',233),
+ ('maybe_int -> empty','maybe_int',1,'p_maybe_int','parser.py',234),
+ ('empty -> <empty>','empty',0,'p_empty','parser.py',238),
+ ('fields -> NULL','fields',1,'p_fields_null','parser.py',242),
+ ('fields -> BOOL','fields',1,'p_fields_bool','parser.py',247),
+ ('expression -> ! jsonpath','expression',2,'p_expression_not','parser.py',253),
+ ('expressions -> and_expressions','expressions',1,'p_expressions_and_expressions','parser.py',267),
+ ('expressions -> expressions OR and_expressions','expressions',3,'p_expressions_or','parser.py',271),
+ ('and_expressions -> operand','and_expressions',1,'p_and_expressions_operand','parser.py',285),
+ ('and_expressions -> and_expressions AND operand','and_expressions',3,'p_and_expressions_and','parser.py',289),
+ ('and_expressions -> and_expressions & operand','and_expressions',3,'p_and_expressions_ampersand','parser.py',293),
+ ('operand -> expression','operand',1,'p_operand_expression','parser.py',302),
+ ('operand -> ( expressions )','operand',3,'p_operand_parens','parser.py',306),
+ ('filter -> ? expressions','filter',2,'p_filter','parser.py',310),
+ ('jsonpath -> jsonpath [ filter ]','jsonpath',4,'p_jsonpath_filter','parser.py',314),
+ ('jsonpath -> jsonpath DOUBLEDOT [ filter ]','jsonpath',5,'p_jsonpath_descendant_filter','parser.py',318),
+ ('sort -> SORT_DIRECTION jsonpath','sort',2,'p_sort','parser.py',322),
+ ('sorts -> sort','sorts',1,'p_sorts_sort','parser.py',326),
+ ('sorts -> sorts sorts','sorts',2,'p_sorts_comma','parser.py',330),
+ ('jsonpath -> jsonpath [ sorts ]','jsonpath',4,'p_jsonpath_sort','parser.py',336),
+ ('jsonpath -> @','jsonpath',1,'p_jsonpath_this','parser.py',341),
]
=====================================
src/jsonpath_ng/_ply_tables/parser_table.py
=====================================
@@ -27,33 +27,33 @@ for _k, _v in _lr_goto_items.items():
del _lr_goto_items
_lr_productions = [
("S' -> jsonpath","S'",1,None,None,None),
- ('jsonpath -> jsonpath . jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',105),
- ('jsonpath -> jsonpath DOUBLEDOT jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',106),
- ('jsonpath -> jsonpath WHERE jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',107),
- ('jsonpath -> jsonpath WHERENOT jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',108),
- ('jsonpath -> jsonpath | jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',109),
- ('jsonpath -> jsonpath & jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',110),
- ('jsonpath -> fields_or_any','jsonpath',1,'p_jsonpath_fields','parser.py',137),
- ('jsonpath -> NAMED_OPERATOR','jsonpath',1,'p_jsonpath_named_operator','parser.py',141),
- ('jsonpath -> $','jsonpath',1,'p_jsonpath_root','parser.py',153),
- ('jsonpath -> [ idx ]','jsonpath',3,'p_jsonpath_idx','parser.py',157),
- ('jsonpath -> [ slice ]','jsonpath',3,'p_jsonpath_slice','parser.py',161),
- ('jsonpath -> [ fields ]','jsonpath',3,'p_jsonpath_fieldbrackets','parser.py',165),
- ('jsonpath -> jsonpath [ fields ]','jsonpath',4,'p_jsonpath_child_fieldbrackets','parser.py',169),
- ('jsonpath -> jsonpath [ idx ]','jsonpath',4,'p_jsonpath_child_idxbrackets','parser.py',173),
- ('jsonpath -> jsonpath [ slice ]','jsonpath',4,'p_jsonpath_child_slicebrackets','parser.py',177),
- ('jsonpath -> ( jsonpath )','jsonpath',3,'p_jsonpath_parens','parser.py',181),
- ('fields_or_any -> fields','fields_or_any',1,'p_fields_or_any','parser.py',186),
- ('fields_or_any -> *','fields_or_any',1,'p_fields_or_any','parser.py',187),
- ('fields_or_any -> NUMBER','fields_or_any',1,'p_fields_or_any','parser.py',188),
- ('fields -> ID','fields',1,'p_fields_id','parser.py',198),
- ('fields -> fields , fields','fields',3,'p_fields_comma','parser.py',202),
- ('idx -> NUMBER','idx',1,'p_idx','parser.py',208),
- ('idx -> idx , idx','idx',3,'p_idx_comma','parser.py',212),
- ('slice -> *','slice',1,'p_slice_any','parser.py',216),
- ('slice -> maybe_int : maybe_int','slice',3,'p_slice','parser.py',220),
- ('slice -> maybe_int : maybe_int : maybe_int','slice',5,'p_slice','parser.py',221),
- ('maybe_int -> NUMBER','maybe_int',1,'p_maybe_int','parser.py',225),
- ('maybe_int -> empty','maybe_int',1,'p_maybe_int','parser.py',226),
- ('empty -> <empty>','empty',0,'p_empty','parser.py',230),
+ ('jsonpath -> jsonpath . jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',106),
+ ('jsonpath -> jsonpath DOUBLEDOT jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',107),
+ ('jsonpath -> jsonpath WHERE jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',108),
+ ('jsonpath -> jsonpath WHERENOT jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',109),
+ ('jsonpath -> jsonpath | jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',110),
+ ('jsonpath -> jsonpath & jsonpath','jsonpath',3,'p_jsonpath_binop','parser.py',111),
+ ('jsonpath -> fields_or_any','jsonpath',1,'p_jsonpath_fields','parser.py',138),
+ ('jsonpath -> NAMED_OPERATOR','jsonpath',1,'p_jsonpath_named_operator','parser.py',145),
+ ('jsonpath -> $','jsonpath',1,'p_jsonpath_root','parser.py',157),
+ ('jsonpath -> [ idx ]','jsonpath',3,'p_jsonpath_idx','parser.py',161),
+ ('jsonpath -> [ slice ]','jsonpath',3,'p_jsonpath_slice','parser.py',165),
+ ('jsonpath -> [ fields ]','jsonpath',3,'p_jsonpath_fieldbrackets','parser.py',169),
+ ('jsonpath -> jsonpath [ fields ]','jsonpath',4,'p_jsonpath_child_fieldbrackets','parser.py',173),
+ ('jsonpath -> jsonpath [ idx ]','jsonpath',4,'p_jsonpath_child_idxbrackets','parser.py',180),
+ ('jsonpath -> jsonpath [ slice ]','jsonpath',4,'p_jsonpath_child_slicebrackets','parser.py',184),
+ ('jsonpath -> ( jsonpath )','jsonpath',3,'p_jsonpath_parens','parser.py',188),
+ ('fields_or_any -> fields','fields_or_any',1,'p_fields_or_any','parser.py',194),
+ ('fields_or_any -> *','fields_or_any',1,'p_fields_or_any','parser.py',195),
+ ('fields_or_any -> NUMBER','fields_or_any',1,'p_fields_or_any','parser.py',196),
+ ('fields -> ID','fields',1,'p_fields_id','parser.py',206),
+ ('fields -> fields , fields','fields',3,'p_fields_comma','parser.py',210),
+ ('idx -> NUMBER','idx',1,'p_idx','parser.py',216),
+ ('idx -> idx , idx','idx',3,'p_idx_comma','parser.py',220),
+ ('slice -> *','slice',1,'p_slice_any','parser.py',224),
+ ('slice -> maybe_int : maybe_int','slice',3,'p_slice','parser.py',228),
+ ('slice -> maybe_int : maybe_int : maybe_int','slice',5,'p_slice','parser.py',229),
+ ('maybe_int -> NUMBER','maybe_int',1,'p_maybe_int','parser.py',233),
+ ('maybe_int -> empty','maybe_int',1,'p_maybe_int','parser.py',234),
+ ('empty -> <empty>','empty',0,'p_empty','parser.py',238),
]
=====================================
src/jsonpath_ng/ext/filter.py
=====================================
@@ -191,7 +191,7 @@ class Filter(JSONPath):
if isinstance(datum.value, dict):
candidates = datum.value.items()
- make_path = Fields
+ make_path = Fields._compliant_constructor
elif isinstance(datum.value, list):
candidates = enumerate(datum.value)
make_path = Index
=====================================
src/jsonpath_ng/ext/parser.py
=====================================
@@ -210,11 +210,17 @@ class ExtendedJsonPathParser(parser.JsonPathParser):
def p_singular_query_name(self, p: _ExtProduction) -> None:
"singular_query : singular_query '.' singular_name"
- p[0] = Child(typing.cast(JSONPath, p[1]), Fields(typing.cast(str, p[3])))
+ p[0] = Child(
+ typing.cast(JSONPath, p[1]),
+ Fields._compliant_constructor(typing.cast(str, p[3])),
+ )
def p_singular_query_bracketed_name(self, p: _ExtProduction) -> None:
"singular_query : singular_query '[' ID ']'"
- p[0] = Child(typing.cast(JSONPath, p[1]), Fields(typing.cast(str, p[3])))
+ p[0] = Child(
+ typing.cast(JSONPath, p[1]),
+ Fields._compliant_constructor(typing.cast(str, p[3])),
+ )
def p_singular_query_index(self, p: _ExtProduction) -> None:
"singular_query : singular_query '[' NUMBER ']'"
=====================================
src/jsonpath_ng/jsonpath.py
=====================================
@@ -180,7 +180,9 @@ class DatumInContext:
Looks like a path, but with ids stuck in when available
"""
try:
- pseudopath: JSONPath = Fields(str(self.value[auto_id_field]))
+ pseudopath: JSONPath = Fields._compliant_constructor(
+ str(self.value[auto_id_field])
+ )
except (
TypeError,
AttributeError,
@@ -556,7 +558,9 @@ class Descendants(JSONPath):
stack.extend(children)
elif isinstance(value, dict):
stack.extend(
- DatumInContext(child, context=datum, path=Fields(field))
+ DatumInContext(
+ child, context=datum, path=Fields._compliant_constructor(field)
+ )
for field, child in reversed(value.items())
)
@@ -725,18 +729,46 @@ class _Intersect(JSONPath):
class Fields(JSONPath):
"""
JSONPath referring to some field of the current object.
- Concrete syntax ix comma-separated field names.
+ Concrete syntax is comma-separated field names.
- WARNING: If '*' is any of the field names, then they will
- all be returned.
- The wildcard also selects all of the elements of an array.
+ DEPRECATED: If '*' is any of the field names given to the constructor,
+ then every field will be returned, and so will every element of an array.
+ This will change in version 2.0.0, when '*' will be an ordinary field name.
+ Use `Wildcard()` to select every child.
"""
+ # True only for a hand-built `Fields('*')`, which is a deprecated wildcard.
+ # A name that came from a query or from the data is never a wildcard.
+ _deprecated_wildcard_use: bool
+
def __init__(self, *fields: str) -> None:
+ self._deprecated_wildcard_use = "*" in fields
+ if self._deprecated_wildcard_use:
+ msg = (
+ "Using `Fields('*')` as a wildcard is deprecated. "
+ "In version 2.0.0, `Fields('*')` will select only a field named `*`. "
+ "Use `Wildcard()` to select every child."
+ )
+ warnings.warn(msg, DeprecationWarning, stacklevel=2)
self.fields = fields
+ @classmethod
+ def _compliant_constructor(cls, *fields: str) -> Fields:
+ """
+ Create a node whose names are all plain names.
+
+ This method solely exists to support instantiation
+ without triggering a wildcard-related DeprecationWarning.
+ This method will be removed in version 2.0.0.
+ """
+
+ node = cls.__new__(cls)
+ node.fields = fields
+ node._deprecated_wildcard_use = False
+ return node
+
def _is_wildcard_on_array(self, value: typing.Any) -> bool:
- return "*" in self.fields and isinstance(value, (list, tuple))
+ return self._deprecated_wildcard_use and isinstance(value, (list, tuple))
@staticmethod
def get_field_datum(
@@ -751,12 +783,14 @@ class Fields(JSONPath):
datum.value[field] = field_value = {}
else:
return None
- return DatumInContext(field_value, path=Fields(field), context=datum)
+ return DatumInContext(
+ field_value, path=Fields._compliant_constructor(field), context=datum
+ )
except (TypeError, AttributeError):
return None
def reified_fields(self, datum: DatumInContext) -> tuple[str, ...]:
- if "*" not in self.fields:
+ if not self._deprecated_wildcard_use:
return self.fields
else:
try:
@@ -774,7 +808,7 @@ class Fields(JSONPath):
def _find_base(self, datum: typing.Any, create: bool) -> list[DatumInContext]:
datum = DatumInContext.wrap(datum)
if self._is_wildcard_on_array(datum.value):
- return Slice().find(datum)
+ return _find_array_elements(datum)
field_data = [
self.get_field_datum(datum, field, create)
for field in self.reified_fields(datum)
@@ -782,8 +816,8 @@ class Fields(JSONPath):
return [fd for fd in field_data if fd is not None]
def update(self, data: typing.Any, val: typing.Any) -> typing.Any:
- if "*" in self.fields and isinstance(data, list):
- return Slice().update(data, val)
+ if self._deprecated_wildcard_use and isinstance(data, list):
+ return _update_array_elements(data, val)
if not hasattr(data, "get"):
return data
return self._update_base(data, val, create=False)
@@ -808,8 +842,8 @@ class Fields(JSONPath):
return data
def filter(self, fn: FilterFunction, data: Container) -> Container:
- if "*" in self.fields and isinstance(data, list):
- return Slice().filter(fn, data)
+ if self._deprecated_wildcard_use and isinstance(data, list):
+ return _filter_array_elements(fn, data)
if data is not None and isinstance(data, dict):
for field in self.reified_fields(DatumInContext.wrap(data)):
if field in data:
@@ -824,22 +858,102 @@ class Fields(JSONPath):
# Otherwise, the extended parser reads the `@` as the current node.
rendered_fields: list[str] = []
for field in self.fields:
- if re.match(r"^@?[A-Za-z_][A-Za-z0-9_ at -]*$", field):
+ if (field == "*" and self._deprecated_wildcard_use) or re.match(
+ r"^@?[A-Za-z_][A-Za-z0-9_ at -]*$", field
+ ):
rendered_fields.append(field)
else:
rendered_fields.append(f"{field!r}")
return ",".join(rendered_fields)
def __repr__(self) -> str:
- return "{}({})".format(
- self.__class__.__name__, ",".join(map(repr, self.fields))
+ fields = ",".join(map(repr, self.fields))
+ if not self._deprecated_wildcard_use and "*" in self.fields:
+ # Distinguish a field named `*` from the deprecated wildcard.
+ return f"{self.__class__.__name__}._compliant_constructor({fields})"
+ return f"{self.__class__.__name__}({fields})"
+
+ def __eq__(self, other: typing.Any) -> bool:
+ return (
+ isinstance(other, Fields)
+ and tuple(self.fields) == tuple(other.fields)
+ and self._deprecated_wildcard_use == other._deprecated_wildcard_use
+ )
+
+ def __hash__(self) -> int:
+ return hash((tuple(self.fields), self._deprecated_wildcard_use))
+
+
+class Wildcard(JSONPath):
+ """
+ JSONPath that matches every child of an object or array.
+ Concrete syntax is `*`, as in `$.*` and `$[*]`.
+
+ RFC 9535, section 2.3.2: a wildcard selects every member of an object
+ and every element of an array, and selects nothing from a scalar.
+ """
+
+ @staticmethod
+ def _keys(value: typing.Any) -> tuple[typing.Any, ...]:
+ try:
+ return tuple(value.keys())
+ except AttributeError:
+ return ()
+
+ def find(self, datum: typing.Any) -> list[DatumInContext]:
+ datum = DatumInContext.wrap(datum)
+ if isinstance(datum.value, (list, tuple)):
+ return _find_array_elements(datum)
+ if isinstance(datum.value, dict) and auto_id_field is None:
+ # Without auto ids, every member exists, so skip the per-name lookups.
+ make_path = Fields._compliant_constructor
+ return [
+ DatumInContext(value, path=make_path(key), context=datum)
+ for key, value in datum.value.items()
+ ]
+ try:
+ keys = tuple(datum.value.keys())
+ except AttributeError:
+ return []
+ if auto_id_field is not None:
+ keys += (auto_id_field,)
+ field_data = [Fields.get_field_datum(datum, key, False) for key in keys]
+ return [fd for fd in field_data if fd is not None]
+
+ def update(self, data: typing.Any, val: typing.Any) -> typing.Any:
+ if isinstance(data, list):
+ return _update_array_elements(data, val)
+ if not hasattr(data, "get"):
+ return data
+ return self.update_or_create(data, val)
+
+ def update_or_create(self, data: typing.Any, val: typing.Any) -> typing.Any:
+ # Children that already exist are the only ones that can be updated,
+ # so there is nothing to create.
+ return Fields._compliant_constructor(*self._keys(data))._update_base(
+ data, val, create=False
)
+ def filter(self, fn: FilterFunction, data: Container) -> Container:
+ if isinstance(data, list):
+ return _filter_array_elements(fn, data)
+ if isinstance(data, dict):
+ for key, value in list(data.items()):
+ if fn(value):
+ del data[key]
+ return data
+
+ def __str__(self) -> str:
+ return "*"
+
+ def __repr__(self) -> str:
+ return f"{self.__class__.__name__}()"
+
def __eq__(self, other: typing.Any) -> bool:
- return isinstance(other, Fields) and tuple(self.fields) == tuple(other.fields)
+ return isinstance(other, Wildcard)
def __hash__(self) -> int:
- return hash(tuple(self.fields))
+ return hash(Wildcard)
class Index(JSONPath):
@@ -849,8 +963,7 @@ class Index(JSONPath):
WARNING: If the datum is None or not long enough,
it will not crash but will not match anything.
- NOTE: For the concrete syntax of `[*]`,
- the abstract syntax is a Slice() with no parameters (equiv to `[:]`).
+ NOTE: For the concrete syntax of `[*]`, the abstract syntax is `Wildcard()`.
"""
def __init__(self, *indices: int) -> None:
@@ -961,27 +1074,59 @@ class Slice(JSONPath):
"""
JSONPath matching a slice of an array.
- The wildcard ``[*]`` (a slice with no parameters) matches all the elements
- of an array and all the member values of an object.
- Slices match nothing when applied to a value that is not an array,
- and the wildcard matches nothing when applied to a scalar value.
+ RFC 9535, section 2.3.4.2: a slice selects nothing from a value
+ that is not an array, so ``[:]`` matches every element of an array
+ and nothing from an object or a scalar.
+ Use ``Wildcard()`` to match every child of an object or an array.
"""
+ # True only for a hand-built `Slice()` with no parameters,
+ # which is a deprecated wildcard when applied to an object.
+ # A slice from a parsed query is never interpreted a wildcard.
+ _deprecated_wildcard_use: bool
+
def __init__(
self, start: int | None = None, end: int | None = None, step: int | None = None
) -> None:
+ self._deprecated_wildcard_use = start is None and end is None and step is None
+ if self._deprecated_wildcard_use:
+ msg = (
+ "A `Slice()` with no parameters will select the members of an object. "
+ "In version 2.0.0, `Slice()` will only select items from arrays. "
+ "Use `Wildcard()` to select every child."
+ )
+ warnings.warn(msg, DeprecationWarning, stacklevel=2)
self.start = start
self.end = end
self.step = step
+ @classmethod
+ def _compliant_constructor(
+ cls, start: int | None = None, end: int | None = None, step: int | None = None
+ ) -> Slice:
+ """
+ Create a slice that selects nothing from an object.
+
+ This method solely exists to support instantiation
+ without triggering a wildcard-related DeprecationWarning.
+ This method will be removed in version 2.0.0.
+ """
+
+ node = cls.__new__(cls)
+ node.start = start
+ node.end = end
+ node.step = step
+ node._deprecated_wildcard_use = False
+ return node
+
def find(self, datum: typing.Any) -> list[DatumInContext]:
datum = DatumInContext.wrap(datum)
- is_wildcard = self.start is None and self.end is None and self.step is None
-
- if is_wildcard and isinstance(datum.value, dict):
+ if self._deprecated_wildcard_use and isinstance(datum.value, dict):
return [
- DatumInContext(value, path=Fields(field), context=datum)
+ DatumInContext(
+ value, path=Fields._compliant_constructor(field), context=datum
+ )
for field, value in datum.value.items()
]
@@ -991,11 +1136,8 @@ class Slice(JSONPath):
if self.step == 0:
return []
- if is_wildcard:
- return [
- DatumInContext(child, path=Index(i), context=datum)
- for i, child in enumerate(datum.value)
- ]
+ if self.start is None and self.end is None and self.step is None:
+ return _find_array_elements(datum)
return [
DatumInContext(datum.value[i], path=Index(i), context=datum)
@@ -1009,7 +1151,7 @@ class Slice(JSONPath):
def filter(self, fn: FilterFunction, data: Container) -> Container:
if isinstance(data, dict):
- if self.start is None and self.end is None and self.step is None:
+ if self._deprecated_wildcard_use:
for key, value in list(data.items()):
if fn(value):
del data[key]
@@ -1044,11 +1186,21 @@ class Slice(JSONPath):
if len(elements) == 1:
elements.append("")
- return f"[{':'.join(elements) or '*'}]"
+ return f"[{':'.join(elements) or ':'}]"
def __repr__(self) -> str:
+ constructor = self.__class__.__name__
+ if (
+ not self._deprecated_wildcard_use
+ and self.start is None
+ and self.end is None
+ and self.step is None
+ ):
+ # Distinguish a slice that selects nothing from an object
+ # from the deprecated wildcard.
+ constructor += "._compliant_constructor"
return "{}(start={!r},end={!r},step={!r})".format(
- self.__class__.__name__, self.start, self.end, self.step
+ constructor, self.start, self.end, self.step
)
def __eq__(self, other: typing.Any) -> bool:
@@ -1057,10 +1209,42 @@ class Slice(JSONPath):
and other.start == self.start
and self.end == other.end
and other.step == self.step
+ and self._deprecated_wildcard_use == other._deprecated_wildcard_use
)
def __hash__(self) -> int:
- return hash((self.start, self.end, self.step))
+ return hash((self.start, self.end, self.step, self._deprecated_wildcard_use))
+
+
+def _find_array_elements(datum: DatumInContext) -> list[DatumInContext]:
+ """Find every element of the array in `datum`."""
+
+ return [
+ DatumInContext(child, path=Index(i), context=datum)
+ for i, child in enumerate(datum.value)
+ ]
+
+
+def _update_array_elements(data: list[typing.Any], val: typing.Any) -> list[typing.Any]:
+ """Update every element of `data` in place."""
+
+ return typing.cast(
+ list[typing.Any],
+ Index(*range(len(data)))._update_base(data, val, create=False),
+ )
+
+
+def _filter_array_elements(
+ fn: FilterFunction, data: list[typing.Any]
+) -> list[typing.Any]:
+ """Remove from `data`, in place, every element for which `fn` is true."""
+
+ # `fn` sees each original element once, in order,
+ # and the work stays linear however many elements are removed.
+ kept = [value for value in data if not fn(value)]
+ if len(kept) != len(data):
+ data[:] = kept
+ return data
def _create_list_key(
=====================================
src/jsonpath_ng/parser.py
=====================================
@@ -23,6 +23,7 @@ from jsonpath_ng.jsonpath import Slice
from jsonpath_ng.jsonpath import This
from jsonpath_ng.jsonpath import Where
from jsonpath_ng.jsonpath import WhereNot
+from jsonpath_ng.jsonpath import Wildcard
from jsonpath_ng.jsonpath import _Intersect
from jsonpath_ng.jsonpath import _Union
from jsonpath_ng.lexer import JsonPathLexer
@@ -135,7 +136,10 @@ class JsonPathParser:
def p_jsonpath_fields(self, p: _Production) -> None:
"jsonpath : fields_or_any"
- p[0] = Fields(*typing.cast(list[str], p[1]))
+ if isinstance(p[1], Wildcard):
+ p[0] = p[1]
+ else:
+ p[0] = Fields._compliant_constructor(*typing.cast(list[str], p[1]))
def p_jsonpath_named_operator(self, p: _Production) -> None:
"jsonpath : NAMED_OPERATOR"
@@ -159,15 +163,18 @@ class JsonPathParser:
def p_jsonpath_slice(self, p: _Production) -> None:
"jsonpath : '[' slice ']'"
- p[0] = typing.cast(Slice, p[2])
+ p[0] = typing.cast(JSONPath, p[2])
def p_jsonpath_fieldbrackets(self, p: _Production) -> None:
"jsonpath : '[' fields ']'"
- p[0] = Fields(*typing.cast(list[str], p[2]))
+ p[0] = Fields._compliant_constructor(*typing.cast(list[str], p[2]))
def p_jsonpath_child_fieldbrackets(self, p: _Production) -> None:
"jsonpath : jsonpath '[' fields ']'"
- p[0] = Child(typing.cast(JSONPath, p[1]), Fields(*typing.cast(list[str], p[3])))
+ p[0] = Child(
+ typing.cast(JSONPath, p[1]),
+ Fields._compliant_constructor(*typing.cast(list[str], p[3])),
+ )
def p_jsonpath_child_idxbrackets(self, p: _Production) -> None:
"jsonpath : jsonpath '[' idx ']'"
@@ -175,20 +182,21 @@ class JsonPathParser:
def p_jsonpath_child_slicebrackets(self, p: _Production) -> None:
"jsonpath : jsonpath '[' slice ']'"
- p[0] = Child(typing.cast(JSONPath, p[1]), typing.cast(Slice, p[3]))
+ p[0] = Child(typing.cast(JSONPath, p[1]), typing.cast(JSONPath, p[3]))
def p_jsonpath_parens(self, p: _Production) -> None:
"jsonpath : '(' jsonpath ')'"
p[0] = typing.cast(JSONPath, p[2])
- # Because fields in brackets cannot be '*' - that is reserved for array indices
+ # An unquoted '*' is the wildcard selector (RFC 9535, section 2.3.2);
+ # a quoted '*' is a field name and arrives here as a `fields` list.
def p_fields_or_any(self, p: _Production) -> None:
"""fields_or_any : fields
| '*'
| NUMBER"""
p1 = p[1]
if p1 == "*":
- p[0] = ["*"]
+ p[0] = Wildcard()
elif isinstance(p1, int):
p[0] = [str(p1)]
else:
@@ -214,12 +222,12 @@ class JsonPathParser:
def p_slice_any(self, p: _Production) -> None:
"slice : '*'"
- p[0] = Slice()
+ p[0] = Wildcard()
def p_slice(self, p: _Production) -> None: # Currently does not support `step`
"""slice : maybe_int ':' maybe_int
| maybe_int ':' maybe_int ':' maybe_int"""
- p[0] = Slice(*typing.cast(list[int | None], p[1::2]))
+ p[0] = Slice._compliant_constructor(*typing.cast(list[int | None], p[1::2]))
def p_maybe_int(self, p: _Production) -> None:
"""maybe_int : NUMBER
=====================================
tests/benchmarks/test_wildcard.py
=====================================
@@ -0,0 +1,29 @@
+import pytest
+
+import jsonpath_ng.parser
+
+benchmark_group = pytest.mark.benchmark(group="wildcard")
+
+SIZE = 1000
+
+
+ at benchmark_group
+ at pytest.mark.parametrize("query", ("$[*]", "$.*"))
+def test_wildcard_find_object_members(benchmark, query):
+ path = jsonpath_ng.parser.JsonPathParser().parse(query)
+ data = {str(i): i for i in range(SIZE)}
+
+ result = benchmark(path.find, data)
+
+ assert len(result) == SIZE
+
+
+ at benchmark_group
+ at pytest.mark.parametrize("query", ("$[*]", "$.*"))
+def test_wildcard_find_array_elements(benchmark, query):
+ path = jsonpath_ng.parser.JsonPathParser().parse(query)
+ data = list(range(SIZE))
+
+ result = benchmark(path.find, data)
+
+ assert len(result) == SIZE
=====================================
tests/jsonpath/test_slice.py
=====================================
@@ -2,6 +2,8 @@ import pytest
import jsonpath_ng
import jsonpath_ng.ext
+from jsonpath_ng.jsonpath import Child
+from jsonpath_ng.jsonpath import Root
parsers = pytest.mark.parametrize(
"parse",
@@ -13,8 +15,7 @@ parsers = pytest.mark.parametrize(
@pytest.mark.parametrize(
"data, expected_start, expected_end, expected_step",
(
- # Special case
- pytest.param("[*]", None, None, None, id="wildcard"),
+ pytest.param("[:]", None, None, None, id="empty"),
# Individual elements
pytest.param("[0:]", 0, None, None, id="start-false-y"),
pytest.param("[1:]", 1, None, None, id="start-1"),
@@ -63,6 +64,79 @@ def test_find_slice_with_parameters_selects_nothing_from_objects(parse):
assert parse("$.o[0:2]").find({"o": {"x": 1, "y": 2}}) == []
+ at parsers
+ at pytest.mark.parametrize("query", ("$[:]", "$[::]", "$.o[:]", "$.o[::]"))
+def test_find_empty_slice_selects_nothing_from_objects(parse, query):
+ # RFC 9535 section 2.3.4.2: a slice selects nothing from a non-array.
+ # (`[*]` is the selector that selects the members of an object.)
+ assert parse(query).find({"x": 1, "y": 2, "o": {"x": 1, "y": 2}}) == []
+
+
+ at parsers
+ at pytest.mark.parametrize("query", ("$[:]", "$[::]"))
+def test_find_empty_slice_selects_every_array_element(parse, query):
+ matches = parse(query).find([1, 2, 3])
+
+ assert [match.value for match in matches] == [1, 2, 3]
+ assert [str(match.full_path) for match in matches] == ["[0]", "[1]", "[2]"]
+
+
+ at parsers
+def test_find_empty_slice_in_descendants_skips_object_members(parse):
+ data = {"a": [1, 2], "o": {"x": 3, "y": [4]}}
+
+ assert [match.value for match in parse("$..[:]").find(data)] == [1, 2, 4]
+
+
+ at parsers
+ at pytest.mark.parametrize("query", ("$.o[:]", "$.o[::]"))
+def test_update_empty_slice_does_not_change_objects(parse, query):
+ data = {"o": {"x": 1, "y": 2}, "l": [1, 2]}
+
+ assert parse(query).update(data, 0) == {"o": {"x": 1, "y": 2}, "l": [1, 2]}
+
+
+ at parsers
+ at pytest.mark.parametrize("query", ("$.l[:]", "$.l[::]"))
+def test_update_empty_slice_sets_every_array_element(parse, query):
+ data = {"o": {"x": 1, "y": 2}, "l": [1, 2]}
+
+ assert parse(query).update(data, 0) == {"o": {"x": 1, "y": 2}, "l": [0, 0]}
+
+
+ at parsers
+ at pytest.mark.parametrize("query", ("$.o[:]", "$.o[::]"))
+def test_filter_empty_slice_removes_nothing_from_objects(parse, query):
+ data = {"o": {"x": 1, "y": 2}}
+
+ assert parse(query).filter(lambda value: True, data) == {"o": {"x": 1, "y": 2}}
+
+
+ at parsers
+ at pytest.mark.parametrize("query", ("$.l[:]", "$.l[::]"))
+def test_filter_empty_slice_removes_array_elements(parse, query):
+ data = {"l": [1, 2, 3]}
+
+ assert parse(query).filter(lambda value: value != 2, data) == {"l": [2]}
+
+
+ at parsers
+def test_empty_slice_is_not_equal_to_a_hand_built_slice(parse):
+ # A hand-built `Slice()` still acts as a wildcard (and is deprecated),
+ # so it must not compare equal to the RFC-compliant parsed slice.
+ with pytest.warns(DeprecationWarning):
+ hand_built = jsonpath_ng.Slice()
+
+ assert parse("$[:]") != Child(Root(), hand_built)
+ assert parse("$[::]") != Child(Root(), hand_built)
+
+
+ at parsers
+def test_empty_slices_compare_equal_when_both_are_parsed(parse):
+ assert parse("$[:]") == parse("$[::]")
+ assert hash(parse("$[:]")) == hash(parse("$[::]"))
+
+
@parsers
def test_update_wildcard_sets_object_member_values(parse):
data = {"o": {"x": 1, "y": 2}, "l": [1, 2], "s": "text"}
@@ -213,3 +287,15 @@ def test_filter_in_compound_queries(parse):
assert parse("$..[::2]").filter(lambda value: isinstance(value, int), data) is data
assert data == {"a": [2, 4], "b": [[2], [5]], "c": {"d": 1}}
+
+
+ at parsers
+ at pytest.mark.parametrize("expression", ("$[:]", "$[::]", "$[0:]", "$[:2]", "$[::2]"))
+def test_text_form_of_a_slice_parses_back_to_it(parse, expression):
+ path = parse(expression)
+
+ assert parse(str(path)) == path
+
+
+def test_text_form_of_an_empty_slice_is_not_a_wildcard():
+ assert str(jsonpath_ng.Slice._compliant_constructor()) == "[:]"
=====================================
tests/jsonpath/wildcard/__init__.py
=====================================
=====================================
tests/jsonpath/test_fields_wildcard.py → tests/jsonpath/wildcard/test_child_and_descendant.py
=====================================
=====================================
tests/jsonpath/wildcard/test_parsing.py
=====================================
@@ -0,0 +1,52 @@
+"""
+An unquoted ``*`` parses to a ``Wildcard`` node (RFC 9535, section 2.3.2),
+and the text form of a wildcard path parses back to the same path.
+"""
+
+import pytest
+
+import jsonpath_ng
+import jsonpath_ng.ext
+from jsonpath_ng.jsonpath import Child
+from jsonpath_ng.jsonpath import Descendants
+from jsonpath_ng.jsonpath import Fields
+from jsonpath_ng.jsonpath import Root
+from jsonpath_ng.jsonpath import Slice
+from jsonpath_ng.jsonpath import Wildcard
+
+parsers = pytest.mark.parametrize(
+ "parse",
+ (jsonpath_ng.parse, jsonpath_ng.ext.parse),
+ ids=lambda function: function.__module__,
+)
+
+
+ at parsers
+ at pytest.mark.parametrize(
+ "expression, expected",
+ (
+ ("$.*", Child(Root(), Wildcard())),
+ ("$[*]", Child(Root(), Wildcard())),
+ ("$..*", Descendants(Root(), Wildcard())),
+ ("$.a.*", Child(Child(Root(), Fields("a")), Wildcard())),
+ ("$.a[*].b", Child(Child(Child(Root(), Fields("a")), Wildcard()), Fields("b"))),
+ ("*", Wildcard()),
+ ("[*]", Wildcard()),
+ ),
+)
+def test_unquoted_star_parses_to_wildcard(parse, expression, expected):
+ assert parse(expression) == expected
+
+
+ at parsers
+def test_empty_slice_is_not_a_wildcard_node(parse):
+ assert parse("$[:]") == Child(Root(), Slice._compliant_constructor())
+ assert parse("$[:]") != parse("$[*]")
+
+
+ at parsers
+ at pytest.mark.parametrize("expression", ("$.*", "$[*]", "$..*", "$.a.*.b"))
+def test_text_form_of_a_wildcard_path_parses_back_to_it(parse, expression):
+ path = parse(expression)
+
+ assert parse(str(path)) == path
=====================================
tests/jsonpath/wildcard/test_quoted_star.py
=====================================
@@ -0,0 +1,145 @@
+"""
+A quoted ``'*'`` is a member name, and only an unquoted ``*`` is the wildcard.
+
+RFC 9535, section 2.3.1.1: a name selector is a string literal and selects
+the member with that name. Section 2.3.2.1: the wildcard selector is the
+unquoted ``*``. So ``$['*']`` selects the member named ``*``, never every member.
+"""
+
+import copy
+
+import pytest
+
+import jsonpath_ng
+import jsonpath_ng.ext
+
+parsers = pytest.mark.parametrize(
+ "parse",
+ (jsonpath_ng.parse, jsonpath_ng.ext.parse),
+ ids=lambda function: function.__module__,
+)
+
+quoted_star = pytest.mark.parametrize(
+ "expression",
+ ("$['*']", '$["*"]', "$.'*'", '$."*"'),
+)
+
+DATA = {"*": 1, "b": 2, "c": 3}
+
+
+def values(parse, expression, data):
+ return [match.value for match in parse(expression).find(data)]
+
+
+ at parsers
+ at quoted_star
+def test_quoted_star_selects_only_the_member_named_star(parse, expression):
+ assert values(parse, expression, DATA) == [1]
+
+
+ at parsers
+ at quoted_star
+def test_quoted_star_selects_nothing_when_no_member_has_that_name(parse, expression):
+ assert values(parse, expression, {"b": 2, "c": 3}) == []
+
+
+ at parsers
+ at quoted_star
+def test_quoted_star_selects_nothing_from_arrays(parse, expression):
+ assert values(parse, expression, [5, 6]) == []
+
+
+ at parsers
+def test_quoted_star_in_a_union_is_a_name(parse):
+ assert values(parse, "$['*','b']", DATA) == [1, 2]
+
+
+ at parsers
+def test_quoted_star_is_a_name_after_a_descendants_operator(parse):
+ data = {"*": 1, "a": {"*": 2, "b": 3}}
+
+ assert values(parse, "$..['*']", data) == [1, 2]
+
+
+ at parsers
+def test_unquoted_star_is_still_the_wildcard(parse):
+ assert values(parse, "$.*", DATA) == [1, 2, 3]
+ assert values(parse, "$[*]", DATA) == [1, 2, 3]
+
+
+ at parsers
+def test_full_path_of_a_member_named_star_selects_that_member(parse):
+ """A path that is rendered to text must round-trip to the same member."""
+ data = {"*": 1, "b": 2}
+ match = parse("$.*").find(data)[0]
+
+ assert match.value == 1
+ assert values(parse, f"$.{match.full_path}", data) == [1]
+
+
+ at parsers
+ at quoted_star
+def test_update_with_quoted_star_changes_only_the_member_named_star(parse, expression):
+ data = copy.deepcopy(DATA)
+
+ parse(expression).update(data, 99)
+
+ assert data == {"*": 99, "b": 2, "c": 3}
+
+
+ at parsers
+ at quoted_star
+def test_update_with_quoted_star_ignores_arrays(parse, expression):
+ data = [5, 6]
+
+ parse(expression).update(data, 99)
+
+ assert data == [5, 6]
+
+
+ at parsers
+ at quoted_star
+def test_filter_with_quoted_star_removes_only_the_member_named_star(parse, expression):
+ data = copy.deepcopy(DATA)
+
+ parse(expression).filter(lambda value: True, data)
+
+ assert data == {"b": 2, "c": 3}
+
+
+ at parsers
+ at quoted_star
+def test_filter_with_quoted_star_ignores_arrays(parse, expression):
+ data = [5, 6]
+
+ parse(expression).filter(lambda value: True, data)
+
+ assert data == [5, 6]
+
+
+ at parsers
+def test_update_or_create_with_quoted_star_creates_the_member_named_star(parse):
+ data = {"b": 2}
+
+ parse("$['*']").update_or_create(data, 99)
+
+ assert data == {"b": 2, "*": 99}
+
+
+ at parsers
+def test_find_or_create_with_quoted_star_creates_the_member_named_star(parse):
+ data = {"b": 2}
+
+ parse("$['*']").find_or_create(data)
+
+ assert data == {"b": 2, "*": {}}
+
+
+ at parsers
+def test_member_named_star_renders_so_that_it_reparses_as_a_name(parse):
+ (match,) = parse("$['*']").find({"*": 1, "b": 2})
+
+ assert str(match.full_path) == "'*'"
+ assert [m.value for m in parse(f"$.{match.full_path}").find({"*": 1, "b": 2})] == [
+ 1
+ ]
=====================================
tests/jsonpath/wildcard/test_wildcard.py
=====================================
@@ -0,0 +1,127 @@
+"""
+The ``Wildcard`` node selects every child of an object or array.
+
+RFC 9535, section 2.3.2: a wildcard selects every member of an object
+and every element of an array, and selects nothing from a scalar.
+"""
+
+import pytest
+
+import jsonpath_ng
+import jsonpath_ng.ext
+from jsonpath_ng.jsonpath import Fields
+from jsonpath_ng.jsonpath import Slice
+from jsonpath_ng.jsonpath import Wildcard
+
+parsers = pytest.mark.parametrize(
+ "parse",
+ (jsonpath_ng.parse, jsonpath_ng.ext.parse),
+ ids=lambda function: function.__module__,
+)
+
+
+ at parsers
+def test_wildcard_selects_object_members(parse):
+ found = [
+ (str(match.full_path), match.value)
+ for match in parse("$.*").find({"a": 1, "b": [2]})
+ ]
+
+ assert found == [("a", 1), ("b", [2])]
+
+
+ at parsers
+def test_wildcard_selects_array_elements(parse):
+ found = [
+ (str(match.full_path), match.value) for match in parse("$[*]").find([1, 2, 3])
+ ]
+
+ assert found == [("[0]", 1), ("[1]", 2), ("[2]", 3)]
+
+
+ at parsers
+ at pytest.mark.parametrize("data", (5, 1.5, True, None, "text"))
+def test_wildcard_selects_nothing_from_scalars(parse, data):
+ assert parse("$.*").find(data) == []
+ assert parse("$[*]").find(data) == []
+
+
+def test_wildcard_node_selects_children_directly():
+ assert [match.value for match in Wildcard().find({"a": 1, "b": 2})] == [1, 2]
+ assert [match.value for match in Wildcard().find([3, 4])] == [3, 4]
+ assert Wildcard().find(7) == []
+
+
+def test_wildcard_finds_the_member_named_star_by_name_only_once():
+ assert [m.value for m in Wildcard().find({"*": 1, "b": 2})] == [1, 2]
+
+
+ at parsers
+def test_descendant_wildcard_selects_every_descendant(parse):
+ data = {"a": [1, {"b": 2}]}
+
+ assert [match.value for match in parse("$..*").find(data)] == [
+ [1, {"b": 2}],
+ 1,
+ {"b": 2},
+ 2,
+ ]
+
+
+def test_update_with_wildcard_replaces_every_member():
+ data = {"a": 1, "b": 2}
+
+ assert Wildcard().update(data, 0) == {"a": 0, "b": 0}
+
+
+def test_update_with_wildcard_replaces_every_element():
+ assert Wildcard().update([1, 2, 3], 0) == [0, 0, 0]
+
+
+def test_update_with_wildcard_calls_a_callable_with_value_data_and_key():
+ data = {"a": 1}
+
+ Wildcard().update(data, lambda value, container, key: f"{key}{value}")
+
+ assert data == {"a": "a1"}
+
+
+ at pytest.mark.parametrize("data", (5, None, "text", True))
+def test_update_with_wildcard_ignores_scalars(data):
+ assert Wildcard().update(data, 0) == data
+
+
+def test_update_or_create_with_wildcard_replaces_every_member():
+ data = {"a": 1, "b": 2}
+
+ assert Wildcard().update_or_create(data, 0) == {"a": 0, "b": 0}
+
+
+def test_find_or_create_with_wildcard_creates_nothing():
+ data = {"a": 1}
+
+ assert [m.value for m in Wildcard().find_or_create(data)] == [1]
+ assert data == {"a": 1}
+
+
+def test_filter_with_wildcard_removes_matching_members():
+ data = {"a": 1, "b": 2, "c": 3}
+
+ assert Wildcard().filter(lambda value: value > 1, data) == {"a": 1}
+
+
+def test_filter_with_wildcard_removes_matching_elements():
+ assert Wildcard().filter(lambda value: value != 2, [1, 2, 3]) == [2]
+
+
+def test_filter_with_wildcard_ignores_scalars():
+ assert Wildcard().filter(lambda value: True, 5) == 5
+
+
+def test_wildcard_text_form_and_equality():
+ assert str(Wildcard()) == "*"
+ assert repr(Wildcard()) == "Wildcard()"
+ assert Wildcard() == Wildcard()
+ assert hash(Wildcard()) == hash(Wildcard())
+ assert Wildcard() != Slice._compliant_constructor()
+ assert Wildcard() != Fields("a")
=====================================
tests/test_examples.py
=====================================
@@ -10,6 +10,7 @@ from jsonpath_ng.jsonpath import Index
from jsonpath_ng.jsonpath import Root
from jsonpath_ng.jsonpath import Slice
from jsonpath_ng.jsonpath import This
+from jsonpath_ng.jsonpath import Wildcard
@pytest.mark.parametrize(
@@ -19,7 +20,10 @@ from jsonpath_ng.jsonpath import This
(
"$.store.book[*].author",
Child(
- Child(Child(Child(Root(), Fields("store")), Fields("book")), Slice()),
+ Child(
+ Child(Child(Root(), Fields("store")), Fields("book")),
+ Wildcard(),
+ ),
Fields("author"),
),
),
@@ -28,7 +32,7 @@ from jsonpath_ng.jsonpath import This
("$..author", Descendants(Root(), Fields("author"))),
#
# All things in the store
- ("$.store.*", Child(Child(Root(), Fields("store")), Fields("*"))),
+ ("$.store.*", Child(Child(Root(), Fields("store")), Wildcard())),
#
# The price of everything in the store
(
@@ -75,7 +79,7 @@ from jsonpath_ng.jsonpath import This
),
#
# All members of JSON structure
- ("$..*", Descendants(Root(), Fields("*"))),
+ ("$..*", Descendants(Root(), Wildcard())),
],
)
def test_goessner_examples(string, parsed):
=====================================
tests/test_parser.py
=====================================
@@ -7,6 +7,7 @@ from jsonpath_ng.jsonpath import Index
from jsonpath_ng.jsonpath import Slice
from jsonpath_ng.jsonpath import Where
from jsonpath_ng.jsonpath import WhereNot
+from jsonpath_ng.jsonpath import Wildcard
from jsonpath_ng.lexer import JsonPathLexer
from jsonpath_ng.parser import JsonPathParser
@@ -19,13 +20,13 @@ parser_test_cases = (
("😀", Fields("😀")),
("你好", Fields("你好")),
("foo", Fields("foo")),
- ("*", Fields("*")),
+ ("*", Wildcard()),
("1", Fields("1")),
("baz,bizzle", Fields("baz", "bizzle")),
("[1]", Index(1)),
("[1:]", Slice(start=1)),
- ("[:]", Slice()),
- ("[*]", Slice()),
+ ("[:]", Slice._compliant_constructor()),
+ ("[*]", Wildcard()),
("[:2]", Slice(end=2)),
("[1:2]", Slice(start=1, end=2)),
("[5:-2]", Slice(start=5, end=-2)),
=====================================
tests/test_v2_deprecations.py
=====================================
@@ -9,7 +9,10 @@ import jsonpath_ng.ext.parser as parser
import jsonpath_ng.jsonpath
from jsonpath_ng.ext.filter import Filter
from jsonpath_ng.jsonpath import Child
+from jsonpath_ng.jsonpath import Fields
from jsonpath_ng.jsonpath import Root
+from jsonpath_ng.jsonpath import Slice
+from jsonpath_ng.jsonpath import Wildcard
from tests.helpers import assert_value_equality
@@ -215,3 +218,186 @@ def test_bare_word_comparison_operand_still_means_a_string():
def test_comparison_operands_that_are_not_bare_words_do_not_warn(query):
# `pytest` turns every warning into an error.
jsonpath_ng.ext.parse(query)
+
+
+def test_building_fields_star_is_deprecated():
+ with pytest.warns(DeprecationWarning, match=r"Fields\('\*'\).*Wildcard\(\)"):
+ Fields("*")
+
+
+def test_building_fields_that_include_star_is_deprecated():
+ with pytest.warns(DeprecationWarning, match=r"Wildcard\(\)"):
+ Fields("a", "*")
+
+
+def test_building_fields_without_star_is_not_deprecated(recwarn):
+ Fields("a", "b")
+
+ assert not recwarn.list
+
+
+def test_deprecated_fields_star_still_selects_object_members():
+ with pytest.warns(DeprecationWarning):
+ path = Fields("*")
+
+ assert [m.value for m in path.find({"a": 1, "b": 2})] == [1, 2]
+
+
+def test_deprecated_fields_star_still_selects_array_elements():
+ with pytest.warns(DeprecationWarning):
+ path = Fields("*")
+
+ assert [m.value for m in path.find([1, 2])] == [1, 2]
+
+
+def test_deprecated_fields_star_still_updates_and_filters():
+ with pytest.warns(DeprecationWarning):
+ path = Fields("*")
+
+ assert path.update({"a": 1, "b": 2}, 0) == {"a": 0, "b": 0}
+ assert path.update([1, 2], 0) == [0, 0]
+ assert path.filter(lambda value: value > 1, {"a": 1, "b": 2}) == {"a": 1}
+
+
+def test_deprecated_fields_star_text_form_still_means_wildcard():
+ with pytest.warns(DeprecationWarning):
+ path = Fields("*")
+
+ assert str(path) == "*"
+
+
+def test_parsing_never_triggers_the_fields_star_deprecation(recwarn):
+ for expression in ("$.*", "$[*]", "$..*", "$['*']", "$.'*'", "$['*','b']"):
+ jsonpath_ng.parse(expression).find({"*": 1, "b": 2})
+ jsonpath_ng.ext.parse(expression).find({"*": 1, "b": 2})
+
+ assert not recwarn.list
+
+
+def test_a_data_key_named_star_never_triggers_the_deprecation(recwarn):
+ data = {"*": 1, "a": {"*": 2}}
+
+ jsonpath_ng.parse("$..*").find(data)
+ jsonpath_ng.ext.parse("$[?@.*]").find({"x": {"*": 1}})
+ jsonpath_ng.ext.parse("$[?@ > 0]").find(data)
+ jsonpath_ng.parse("$..a").find(data)
+
+ assert not recwarn.list
+
+
+ at pytest.mark.xfail(strict=True, reason="These attributes should be deleted in v2")
+ at pytest.mark.parametrize(
+ "attribute",
+ ("_compliant_constructor", "_deprecated_wildcard_use"),
+)
+def test_fields_attributes(attribute):
+ assert not hasattr(Fields("x"), attribute)
+
+
+def test_building_an_empty_slice_is_deprecated():
+ with pytest.warns(DeprecationWarning, match=r"Slice\(\).*Wildcard\(\)"):
+ Slice()
+
+
+def test_building_an_empty_slice_with_explicit_nones_is_deprecated():
+ with pytest.warns(DeprecationWarning, match=r"Wildcard\(\)"):
+ Slice(None, None, None)
+
+
+ at pytest.mark.parametrize(
+ "arguments",
+ (
+ pytest.param((0,), id="start"),
+ pytest.param((None, 2), id="end"),
+ pytest.param((None, None, 2), id="step"),
+ pytest.param((1, 2, 3), id="all"),
+ ),
+)
+def test_building_a_slice_with_parameters_is_not_deprecated(recwarn, arguments):
+ Slice(*arguments)
+
+ assert not recwarn.list
+
+
+def test_the_compliant_slice_constructor_does_not_warn(recwarn):
+ Slice._compliant_constructor()
+ Slice._compliant_constructor(None, None, None)
+ Slice._compliant_constructor(1, 2, 3)
+
+ assert not recwarn.list
+
+
+def test_the_compliant_slice_constructor_selects_nothing_from_objects():
+ data = {"a": 1, "b": 2}
+ path = Slice._compliant_constructor()
+
+ assert path.find(data) == []
+ assert path.update(data, 0) == {"a": 1, "b": 2}
+ assert path.filter(lambda value: True, data) == {"a": 1, "b": 2}
+
+
+def test_the_compliant_slice_constructor_selects_array_elements():
+ path = Slice._compliant_constructor()
+
+ assert [m.value for m in path.find([1, 2])] == [1, 2]
+ assert path.update([1, 2], 0) == [0, 0]
+ assert path.filter(lambda value: value > 1, [1, 2]) == [1]
+
+
+def test_deprecated_empty_slice_still_selects_object_members():
+ with pytest.warns(DeprecationWarning):
+ path = Slice()
+
+ data = {"a": 1, "b": 2}
+ assert [m.value for m in path.find(data)] == [1, 2]
+ assert path.update(data, 0) == {"a": 0, "b": 0}
+ assert path.filter(lambda value: value == 0, data) == {}
+
+
+def test_deprecated_empty_slice_still_selects_array_elements():
+ with pytest.warns(DeprecationWarning):
+ path = Slice()
+
+ assert [m.value for m in path.find([1, 2])] == [1, 2]
+ assert path.update([1, 2], 0) == [0, 0]
+ assert path.filter(lambda value: value > 1, [1, 2]) == [1]
+
+
+def test_the_empty_slice_text_form_is_unchanged():
+ with pytest.warns(DeprecationWarning):
+ path = Slice()
+
+ assert str(path) == "[:]"
+
+
+ at pytest.mark.parametrize(
+ "expression", ("$[:]", "$[::]", "$[*]", "$.*", "$..*", "$..[:]", "$[0:2]")
+)
+def test_parsing_never_triggers_the_empty_slice_deprecation(recwarn, expression):
+ for parse in (jsonpath_ng.parse, jsonpath_ng.ext.parse):
+ parse(expression).find({"a": [1], "b": {"c": 2}})
+
+ assert not recwarn.list
+
+
+def test_wildcard_never_triggers_the_empty_slice_deprecation(recwarn):
+ data = {"a": [1, 2], "b": {"c": 3}}
+
+ Wildcard().find(data["a"])
+ Wildcard().update(data["a"], 0)
+ Wildcard().filter(lambda value: False, data["a"])
+ Wildcard().find(data)
+
+ assert not recwarn.list
+
+
+def test_internal_slices_never_trigger_the_deprecation(recwarn):
+ with pytest.warns(DeprecationWarning):
+ path = Fields("*")
+ recwarn.clear()
+
+ path.find([1, 2])
+ path.update([1, 2], 0)
+ path.filter(lambda value: False, [1, 2])
+
+ assert not recwarn.list
=====================================
tox.ini
=====================================
@@ -8,6 +8,9 @@ envlist =
mypy-py{3.15, 3.14, 3.13, 3.12, 3.11}
pyinstaller
coverage-report
+ docs
+labels =
+ update=update-requirements
skip_missing_interpreters = True
isolated_build = True
@@ -91,3 +94,31 @@ dependency_groups =
test
commands =
pytest --codspeed --verbose --randomly-dont-reorganize --randomly-dont-reset-seed
+
+
+[testenv:docs]
+description = Test building the documentation
+base_python = py3.14
+skip_install = true
+dependency_groups =
+deps = -r requirements/docs/requirements.txt
+commands =
+ sphinx-build -aWEqb html docs/ build/docs
+
+
+[testenv:update_base]
+description = Base settings for update-* environments
+base_python = py3.13
+recreate = true
+skip_install = true
+
+
+[testenv:update-requirements]
+description = Update requirements files
+base = update_base
+deps =
+ poetry
+ poetry-plugin-export
+commands =
+ poetry update --directory="requirements/docs" --lock
+ poetry export --directory="requirements/docs" --output="requirements.txt" --without-hashes
View it on GitLab: https://salsa.debian.org/debian-gis-team/jsonpath-ng/-/commit/864c0dd73fc80ae9a668af542ed212b9bda6d75a
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/jsonpath-ng/-/commit/864c0dd73fc80ae9a668af542ed212b9bda6d75a
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20261107/c9fa89f7/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list