jsonpath-rw-ext
Extensions for JSONPath RW
What it is and what it does
jsonpath-rw-ext adds query and transformation extensions to the jsonpath-rw library, allowing you to extract, filter, sort, and perform arithmetic operations on JSON data using an extended JSONPath syntax. It provides shortcuts like len (get list length), sorted (return sorted lists), filter (select elements by condition), arithmetic operators (+, -, *, /), and string operations (sub for regex substitution, split for string splitting).
You use it by importing the module and calling parse() or match() functions with JSONPath expressions that include these extensions. The package is intended as a staging ground for features proposed upstream to jsonpath-rw; those that are accepted upstream may eventually be removed from here. It has low install friction but is no longer actively maintained, with the last release in 2019.
Use it for:
- Extract and filter elements from nested JSON APIs using advanced query syntax beyond standard JSONPath.
- Perform calculations across JSON array elements, such as summing or combining values from multiple fields.
- Sort JSON objects by a field value or filter them by conditional expressions in a single query.
- Transform JSON strings using regex substitution or splitting operations within a JSONPath expression.
- Migrate from jsonpath-rw to a richer query language without rewriting your entire codebase.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extends JSONPath RW with additional query operations: len, sorted, filter, arithmetic, sub, and split functions for querying and transforming JSON data.
No—unless you are maintaining legacy code already using this package. The project is abandoned (last commit 2021-08-06, last release 2019-07-12) with no active maintenance or security updates. For new projects, use a maintained JSONPath library or consider alternatives like jsonpath-ng or jmespath that are actively developed and support modern Python versions.
Install
jsonpath-rw-ext on PyPI
pip
pip install jsonpath-rw-extuv
uv add jsonpath-rw-extpoetry
poetry add jsonpath-rw-extInstalling jsonpath-rw-ext
Before you install
Low install friction with only two runtime dependencies (jsonpath-rw and pbr). However, the package is abandoned—last release was 2019-07-12 and last commit 2021-08-06—so no active maintenance or security updates should be expected.
License in practice
Licensed under Apache (permissive), which allows commercial and private use with minimal restrictions, though you assume responsibility for any issues since the package is no longer maintained.
Quickstart
pip install jsonpath-rw-ext
import jsonpath_rw_ext as jp
result = jp.match('$.cow[*]', {'cow': ['foo', 'bar']})
print(result) # ['foo', 'bar']
Verify before relying
- Whether the package works reliably with modern Python versions beyond 3.4, given its age and lack of recent testing.
- Compatibility with current versions of the jsonpath-rw dependency and whether breaking changes have occurred upstream.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — jsonpath-rw, pbr |
| Maintenance | abandoned — 2,590 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,407,126/month — #3,943 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jsonpath_rw_ext-1.2.2-py2.py3-none-any.whl
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
jsonpath-rwParses and executes JSONPath expressions…
permissive · top 5,000 on PyPI
jsonpath-ngParse, query, and modify JSON structures using…
permissive · top 1,000 on PyPI
bc-jsonpath-ngParses and queries JSON structures using…
permissive · top 5,000 on PyPI
objectpathObjectPath is a query language for finding and…
permissive · top 15,000 on PyPI
python-jsonpathImplements RFC 9535-compliant JSONPath query…
permissive · top 5,000 on PyPI
jsonpath-pythonExtracts, filters, sorts, and updates values in…
permissive · top 1,000 on PyPI
jsonpath-rfc9535Queries JSON data using RFC 9535 JSONPath…
permissive · top 15,000 on PyPI
jsonpathImplements JSONPath, a query language for…
permissive · top 5,000 on PyPI
robotframework-jsonlibraryA Robot Framework library for querying, adding,…
permissive · top 15,000 on PyPI