Category: Ubuntu

However, reading the JSON file can be a pain if the JSON file is minified.

Even a human can still read it but if JSON file is properly formatted to display the content, it will be much easier.

With universe repository enabled, you can install it on Ubuntu using the apt command: Once you have it installed, use it in the following manner to pretty print JSON file on the display: You may also tempt to use cat but I believe it one of the useless use of cat command.

If you want to modify the original JSON file with pretty print format, you can pipe the parsed output to a new file and then copy it to the original JSON file.

If that’s the case, you can use it pretty print the JSON file in the terminal: I know there are other ways to parse JSON file and print it with proper format.

Related Articles