The script gets path of a file containing JSON data and prints the data in a convenient format.
The script requires Python v3.5. A path of file containing JSON data is the positional argument of the script.
To run script on Linux:
$ python pprint_json.py test.json
[
{
1: 2,
3: 4
},
{
5:6
}
]
Windows usage is the same.
The code was written for educational purposes. Training course for web-developers - DEVMAN.org