python library for prettifying, and printing dictionaries
- Clone this repository
git clone https://github.com/PiciAkk/printJSON
- Go to the directory, you just cloned
cd printJSON
- Make a file, or start a Python shell in that directory
touch example.py
- Import this module
import printJSON
- Write something to the screen
printJSON.printJSON({"key": "value", "anotherkey": "anothervalue", "something": {"subkey": "subvalue"}})
- Tada!
Output:
{
"key": "value",
"anotherkey": "anothervalue",
"something": {
"subkey": "subvalue"
}
}