Skip to content

Instantly share code, notes, and snippets.

@uuklanger
Created June 18, 2021 17:08
Show Gist options
  • Save uuklanger/e3ac269147d6a2027a633c1f0e563fd5 to your computer and use it in GitHub Desktop.
Save uuklanger/e3ac269147d6a2027a633c1f0e563fd5 to your computer and use it in GitHub Desktop.

Overview

If you want to reformat JSON output from a single line to a nicely formatted document, you can use the following trick.

cat boring.json | python3 -m json.tool > pretty.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment