Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.