informatikr/aeson-pretty

JSON pretty-printing library and command-line tool.

Haskell

65

120 commits

updated Jun 21, 2026

See the code

README

Welcome to aeson-pretty

This is a JSON pretty-printing Haskell library compatible with aeson as well as a command-line tool to improve readabilty of streams of JSON data.

The library provides a single function encodePretty. It is a drop-in replacement for aeson's encode function, producing JSON-ByteStrings for human readers.

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.

Join in!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://github.com/informatikr/aeson-pretty.git

Aeson / GHC support

We support all GHCs supported by the latest Aeson release. This in turn determines which Aeson releases we support.

Authors

This library is written by Falko Peters falko.peters@gmail.com and maintained by Martijn Bastiaan martijn@qbaylogic.com.

Contributors

informatikr

79 commits

martijnbastiaan

24 commits

phadej

3 commits

jkarni

3 commits

informatikr/aeson-pretty

JSON pretty-printing library and command-line tool.

Haskell

65

120 commits

updated Jun 21, 2026

See the code

README

Welcome to aeson-pretty

This is a JSON pretty-printing Haskell library compatible with aeson as well as a command-line tool to improve readabilty of streams of JSON data.

The library provides a single function encodePretty. It is a drop-in replacement for aeson's encode function, producing JSON-ByteStrings for human readers.

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.

Join in!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://github.com/informatikr/aeson-pretty.git

Aeson / GHC support

We support all GHCs supported by the latest Aeson release. This in turn determines which Aeson releases we support.

Authors

This library is written by Falko Peters falko.peters@gmail.com and maintained by Martijn Bastiaan martijn@qbaylogic.com.

Contributors

informatikr

79 commits

martijnbastiaan

24 commits

phadej

3 commits

jkarni

3 commits

Languages

Haskell

92.4%

Shell

7.6%