skillfed

jsonpath

An XPath for JSON

jsonpath v0.82.2 1.1M downloads/30d#4,429 on PyPI
Permissive license MIT Abandoned released

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 jsonpath

uv

uv add jsonpath

poetry

poetry add jsonpath

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Markup

Tags

json query languagexpath for jsonjson path extractionnavigate json structuresjson data filteringjson selectorparse json with xpath
abandonedjson-query

More Python Modules packages