JSON pretty-printing library and command-line tool.

Version on this page:0.8.2
LTS Haskell 15.14:0.8.8
Stackage Nightly 2020-05-26:0.8.8
Latest on Hackage:0.8.8

See all snapshots aeson-pretty appears in

BSD-3-Clause licensed and maintained by Falko Peters

Module documentation for 0.8.2

This version can be pinned in stack with:[email protected]:26422ec6c593a133277f2e0e5eacaa6936ceec59f67f93cc13d9362defe4852f,2187

Welcome to aeson-pretty

Build Status

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://


This library is written and maintained by Falko Peters, [email protected].