# aeson-pretty

> JSON pretty-printing for Haskell's aeson, plus a command-line JSON prettifier

Source: https://talira.ai/catalog/aeson-pretty-pm5w2tw0
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / parsing / json](https://talira.ai/categories/developer-tools/parsing/json), [developer tools / cli / json](https://talira.ai/categories/developer-tools/cli/json), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^2][^3]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Falko Peters](https://talira.ai/orgs/falko-peters.md)

aeson-pretty is a Haskell library and command-line tool for pretty-printing JSON. The library's encodePretty is a drop-in replacement for [aeson](https://talira.ai/catalog/aeson-6xjf51sz.md)'s encode that produces JSON ByteStrings for human readers. The command-line tool reads JSON from stdin and writes prettified JSON to stdout, and has a compact mode that does the opposite. It supports every GHC the latest aeson release supports.

## Links

- GitHub: https://github.com/informatikr/aeson-pretty

## Problems it solves

- pretty-print JSON from a Haskell program using aeson
- format a stream of JSON on the command line
- make aeson output human-readable

## Features

- encodePretty as a drop-in replacement for aeson's encode
- command-line tool that prettifies JSON from stdin
- compact mode for minifying JSON

## Trust

Overall: 0.27 out of 1.
Signals: maintenance 0.27, adoption 0.36, momentum 0.04, community 0.49, backing 0.30, extensibility 0.00.

- 65 GitHub stars
- 16 contributors
- backed by Falko Peters

Warnings:

- last commit 5 months ago

## Related

- Works with [aeson](https://talira.ai/catalog/aeson-6xjf51sz.md)

## Alternatives

- [aeson](https://talira.ai/catalog/aeson-6xjf51sz.md): Fast JSON parsing and encoding for Haskell
- [lens-aeson](https://talira.ai/catalog/lens-aeson-mpbqg826.md): Law-abiding lenses, traversals and prisms for aeson's JSON values

## Sources

[^1]: https://github.com/informatikr/aeson-pretty/blob/master/README.markdown (checked 28 Nov 2026)
[^2]: https://github.com/informatikr/aeson-pretty/blob/master/LICENSE (checked 28 Nov 2026)
[^3]: https://github.com/informatikr/aeson-pretty/blob/master/aeson-pretty.cabal (checked 28 Nov 2026)
