Occasionally I need to reformat a JSON file but didn’t have a goto command tool at my disposal. Surprise surprise old friend Python comes along ;)
$ echo '{"love": "everyone", "hate": "no one"}' | python -m json.tool
{
"hate": "no one",
"love": "everyone"
}
ref https://docs.python.org/3.6/library/json.html#module-json.tool