https://github.com/asphaltt/jq.py
jq implemented in python3
https://github.com/asphaltt/jq.py
Last synced: about 2 months ago
JSON representation
jq implemented in python3
- Host: GitHub
- URL: https://github.com/asphaltt/jq.py
- Owner: Asphaltt
- License: mit
- Created: 2017-09-09T16:22:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-09T17:00:19.000Z (almost 9 years ago)
- Last Synced: 2025-01-13T06:26:30.810Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Usage of jq.py
Note: there are only one argument in jq.py
- -r: reverse, unbeautify the JSON data; no matter where it is
## Examples
Note: **jq** is the alias of `python3 jq.py`
Beautify/Unbeautify the JSON file:
```shell
jq example.json
jq -r example.json
jq example.json -r
```
Beautify/Unbeautify the JSON data from pipeline:
```shell
cat example.json | jq
cat example.json | jq -r
```