Install aeson-pretty by entering the following commands in the terminal:
sudo apt update sudo apt install aeson-pretty
JSON pretty-printing tool
The command-line tool reads JSON from stdin and writes prettified JSON to stdout. It also offers a complementary compact-mode, essentially the opposite of pretty-printing. . This is built on the aeson-pretty library; see also libghc-aeson-pretty-dev.