jsonpath
An XPath for JSON
What it is and what it does
jsonpath is a Python port of JSONPath, a query language for JSON documents modeled after XPath for XML. It allows you to extract data from nested JSON structures using path expressions like $.store.book[*].title to select specific elements without manual traversal. The package has no runtime dependencies and works with standard Python data structures.
The package is in beta status and has been abandoned for over a year, with no recent commits or active maintenance. While it carries an MIT license and has no known security vulnerabilities, its age and lack of updates mean it may not handle edge cases in modern JSON or work reliably with current Python versions. For new projects, you should verify whether a maintained alternative better suits your needs.
Use it for:
- Extract specific fields from deeply nested JSON API responses without manual dictionary traversal.
- Filter and select elements from JSON arrays using path expressions in data processing pipelines.
- Query configuration files or data exports stored in JSON format to retrieve values matching a pattern.
- Transform JSON documents by selecting subsets of data based on XPath-like criteria.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Implements JSONPath, a query language for extracting data from JSON documents using XPath-like syntax to navigate and filter nested structures.
No—not recommended for new projects. The package is abandoned with no visible repository activity, making it a maintenance liability. While it has no known vulnerabilities and carries a permissive MIT license, the lack of updates raises compatibility and reliability concerns. Consider a maintained JSONPath implementation instead.
Install
jsonpath on PyPI
pip
pip install jsonpathuv
uv add jsonpathpoetry
poetry add jsonpathInstalling jsonpath
Before you install
High install friction due to source distribution. Package is abandoned—last release was 1086 days ago with no repository activity visible. Maintenance status makes this a risky choice for new projects.
License in practice
MIT license permits commercial and private use with minimal restrictions, requiring only license and copyright notice retention.
Quickstart
pip install jsonpath==0.82.2
import jsonpath
data = {"store": {"book": [{"title": "Example"}]}}
result = jsonpath.jsonpath(data, "$.store.book[*].title")
Verify before relying
- Whether this package is actively maintained or has a maintained fork; abandoned status suggests alternatives may be preferable.
- Compatibility with modern Python versions beyond what classifiers indicate; Python 2.7 support is listed but likely non-functional.
- Whether the JSONPath implementation fully conforms to the specification or has known limitations versus other implementations.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,086 days since the last release |
| First released | |
| Downloads | 1,057,675/month — #4,429 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jsonpath-0.82.2.tar.gz
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
objectpathObjectPath is a query language for finding and…
permissive · top 15,000 on PyPI
jsonpath-pythonExtracts, filters, sorts, and updates values in…
permissive · top 1,000 on PyPI
jsonpath-rwParses and executes JSONPath expressions…
permissive · top 5,000 on PyPI
bc-jsonpath-ngParses and queries JSON structures using…
permissive · top 5,000 on PyPI
jsonpath-rfc9535Queries JSON data using RFC 9535 JSONPath…
permissive · top 15,000 on PyPI
parselParsel extracts data from HTML, JSON, and XML…
permissive · top 5,000 on PyPI
robotframework-jsonlibraryA Robot Framework library for querying, adding,…
permissive · top 15,000 on PyPI
python-jsonpathImplements RFC 9535-compliant JSONPath query…
permissive · top 5,000 on PyPI
jsonpath-ngParse, query, and modify JSON structures using…
permissive · top 1,000 on PyPI