If you’re looking for a reliable tool to pretty-print and formatter JSON content, one of the best options is the command-line utility jq, which is described in this Stack Overflow thread: “JSON command line formatter tool for Linux”