--- id: jsonpath-ng version: "1.8.0" license: Apache 2.0 license_treatment: permissive maintenance: active --- # jsonpath-ng — 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. License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install jsonpath-ng uv add jsonpath-ng poetry add jsonpath-ng ## Description Python JSONPath Next-Generation |Build Status| |PyPI| ===================================================== A final implementation of JSONPath for Python that aims to be standard compliant, including arithmetic and binary comparison operators, as defined in the original `JSONPath proposal`_. This packages merges both `jsonpath-rw`_ and `jsonpath-rw-ext`_ and provides several AST API enhancements, such as the ability to update or remove nodes in the tree. About ----- This library provides a robust and significantly extended implementation of JSONPath for Python. It is tested with CPython 3.10 and higher. This library differs from other JSONPath implementations in that it is a full *language* implementation, meaning the JSONPath expressions are first class objects, easy to analyze, transform, parse, print, and extend. Quick Start ----------- To install, use pip: .. code:: bash $ pip install --upgrade jsonpath-ng Usage ----- Basic examples: .. code:: python $ python >>> from jsonpath_ng import jsonpath, parse # A robust parser, not just a regex. (Makes powerful extensions possible; see below) >>> jsonpath_expr = parse('foo[*].baz') #... ## AI interpretation — verify before relying Parses and evaluates JSONPath expressions against JSON data, supporting standard operators, arithmetic comparisons, and AST manipulation for querying, updating, and filtering nested structures. Verdict: Production-ready JSONPath implementation with zero security vulnerabilities, no external dependencies, and active maintenance. Suitable for applications requiring robust JSON querying with support for updates and filtering. [View on SkillFed](https://skillfed.io/packages/jsonpath-ng) · [View on PyPI](https://pypi.org/project/jsonpath-ng/)