jsonpath-python
A lightweight and powerful JSONPath implementation for Python
Decision gist · record as of 2026-08-14
Yes. Zero dependencies, low install friction, active maintenance, no known vulnerabilities, and permissive MIT license make it a safe choice. The pure-Python implementation is straightforward to debug or extend. Install it if you need practical JSONPath querying; if you require strict RFC 9535 compliance, verify the feature set first.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python, zero runtime dependencies, and distributed as a single wheel.
- Actively maintained with recent commits and marked Production/Stable.
License · maintenance · safety
permissive license (permissive) — MIT License permits unrestricted use, modification, and distribution in both open-source and commercial projects, with only attribution and license inclusion required.
last release 2026-05-07 (99 days) · last repo commit 2026-05-07 · 49 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 27,098,778 downloads/mo, #868 on PyPI
Alternatives
Verify before relying
pip install jsonpath-python
from jsonpath import JSONPath
data = {"book": [{"price": 8.95}, {"price": 12.99}]}
result = JSONPath("$.book[?(@.price < 10)]").parse(data)- How closely does the implementation adhere to RFC 9535 JSONPath standard beyond the documented feature set?
- Performance characteristics compared to other JSONPath libraries when handling large JSON structures or complex filter expressions.
What it is and what it does
jsonpath-python is a JSONPath query engine that lets you select, filter, sort, and modify JSON data using path expressions. It implements JSONPath syntax (with extensions beyond the standard) to navigate nested JSON structures—for example, `$.book[?(@.price < 10)]` selects books under 10, and `$..price` recursively finds all price fields. The library is intentionally lightweight: it uses pure Python string parsing instead of external AST frameworks, has zero third-party dependencies, and can even be copied into a project as a standalone utility.
You use it by creating a JSONPath object with an expression string, then calling `.parse()` on your JSON data to get matching results. It supports filtering with regex (`=~`) and membership tests (`in`), sorting by multiple fields in ascending or descending order, array slicing with Python-like syntax, and updating JSON values in place. The implementation prioritizes practical data manipulation over strict RFC compliance, making it suitable for real-world JSON extraction and transformation tasks.
Use it for
- Extract specific fields from deeply nested JSON API responses without manual traversal or loops.
- Filter a list of JSON objects by price, date, or other criteria using inline filter expressions.
- Sort JSON arrays by multiple fields (e.g., by category then by price) using sorter operators.
- Update values in JSON structures at paths matching a JSONPath expression.
- Parse and extract data from configuration files or log entries stored in JSON format.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Zero dependencies, low install friction, active maintenance, no known vulnerabilities, and permissive MIT license make it a safe choice. The pure-Python implementation is straightforward to debug or extend. Install it if you need practical JSONPath querying; if you require strict RFC 9535 compliance, verify the feature set first.
Install
jsonpath-python on PyPI
Before you install
Low friction: pure Python, zero runtime dependencies, and distributed as a single wheel. Actively maintained with recent commits and marked Production/Stable.
License in practice
MIT License permits unrestricted use, modification, and distribution in both open-source and commercial projects, with only attribution and license inclusion required.
Quickstart
pip install jsonpath-python
from jsonpath import JSONPath
data = {"book": [{"price": 8.95}, {"price": 12.99}]}
result = JSONPath("$.book[?(@.price < 10)]").parse(data)
Verify before relying
- How closely does the implementation adhere to RFC 9535 JSONPath standard beyond the documented feature set?
- Performance characteristics compared to other JSONPath libraries when handling large JSON structures or complex filter expressions.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 99 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 27,098,778 / month, #868 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Markup |
Evidence: jsonpath_python-1.1.6-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “extract json by path”
- jsonpath-pythonExtracts, filters, sorts, and updates values in JSON data using…
- jsonpath-ngParse, query, and modify JSON structures using JSONPath expressions…
- bc-jsonpath-ngParses and queries JSON structures using JSONPath expressions,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also jsonpath-ng · jsonquerylang · bc-jsonpath-ng · jsonpath-rw · jsonpath · jsonpath-rfc9535 · python-jsonpath · jsonpath-rw-ext · jsonata-python · json_logic_qubit