Command-line tool to pretty-print JSON
Example of script launch on Linux, Python 3.5:
$ git clone https://github.com/globax89/4_json.git
$ cd 4_json
$ python3 pprint_json.py <path to json file>
$ python3 pprint_json.py sample.json
{
"properties": {
"age": {
"description": "Age in years",
"minimum": 0,
"type": "integer"
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
}
},
"required": [
"firstName",
"lastName"
],
"title": "Person",
"type": "object"
}
The code is written for educational purposes. Training course for web-developers - DEVMAN.org