Comparison
jsonpath vs jsonpath-ng vs jsonpath-python vs jsonpath-rw
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
An XPath for JSON
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install jsonpathA final implementation of JSONPath for Python that aims to be standard compliant, including arithmetic and binary comparison operators and providing clear AST for metaprogramming.
Actively maintained. Last release 4 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
pip install jsonpath-ngA lightweight and powerful JSONPath implementation for Python
Maintained. Last release 7 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install jsonpath-pythonA robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.
Low maintenance activity. Last release over 11 years ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install jsonpath-rwIn short
- jsonpath is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- jsonpath-ng is the most used: 59.1M downloads a month, 4.7× more than jsonpath-python.
- jsonpath-ng also has the best Pythie’s Index (78).
- Safe default for a new project: jsonpath-ng.
Side by side
| Metric | jsonpath | jsonpath-ng | jsonpath-python | jsonpath-rw |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 27 | 78 |