Just a quick tip/note. If you want to quickly pretty print json under macOS (break into multiple lines, insert indentation) you can use this handy one-liner to clean up the json that you currently have on your clipboard (from pressing ⌘-c). It will replace the contents with a pretty printed version. This means that you can simply select any json, hit ⌘-c, run the script and hit ⌘-v to paste the pretty printed version of it. 🚀
pbpaste | python -m json.tool | pbcopy