skillfed

jsonpath-rw-ext

Extensions for JSONPath RW

jsonpath-rw-ext v1.2.2 1.4M downloads/30d#3,943 on PyPI59
Permissive license Abandoned released

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-ext

uv

uv add jsonpath-rw-ext

poetry

poetry add jsonpath-rw-ext

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4

Tags

jsonpath extensionsjson query filteringjson path arithmeticjson data extractionjsonpath rw extensionsjson sorting and filteringjson path operations
json-queryingabandoned

More Text Processing packages