https://github.com/dcbaker/jsontidy
A simple python script for making JSON data readable
https://github.com/dcbaker/jsontidy
Last synced: about 2 months ago
JSON representation
A simple python script for making JSON data readable
- Host: GitHub
- URL: https://github.com/dcbaker/jsontidy
- Owner: dcbaker
- License: mit
- Created: 2015-07-02T21:25:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-17T23:01:28.000Z (over 10 years ago)
- Last Synced: 2025-03-20T07:17:45.976Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jsontidy
A simple python script for making JSON data readable
## Basic Usage
jsontidy can be used with both pipes (stdin and stdout) or with files
Using pipes:
`jsontidy.py < myfile.json > newfile.json`
Using files:
`jsontidy.py myfile.json -o newfile.json`
It is also possible to mix and match:
```
| jsontidy.py -o newfile.json
jsontidy.py myfile.json |
```
There are additional options available for more advanced uses, see jsontidy.py -h for more information
If the JSON cannot be parsed, the message provided by the parsing library will be printed and the utility will exit with a status of 1.