https://github.com/makefu/jsonpath
a simple command line wrapper for jsonpath_rw
https://github.com/makefu/jsonpath
Last synced: 12 months ago
JSON representation
a simple command line wrapper for jsonpath_rw
- Host: GitHub
- URL: https://github.com/makefu/jsonpath
- Owner: makefu
- License: wtfpl
- Created: 2013-07-10T01:18:41.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-10T01:33:20.000Z (almost 13 years ago)
- Last Synced: 2025-05-18T03:37:59.289Z (about 1 year ago)
- Language: Python
- Size: 102 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# JSONPATH
A simple command line (posix shell) wrapper for
jsonpath\_rw for python.
And suddenly JSON is fun (again)!
# Usage
curl http://data.mtgox.com/api/2/BTCUSD/money/ticker_fast | ./jsonpath 'data.last.display'
curl http://api.openweathermap.org/data/2.5/weather\?q\=London,uk | jsonpath "main.temp_max|temp_min"
For all the other cool syntax things, see [https://github.com/kennknowles/python-jsonpath-rw]
# Install
pip install jsonpath_rw
./jsonpath