talira

aeson-pretty

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

open sourceBSD-3-Clausefree

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'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.

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

Alternatives

The same job

These do what aeson-pretty does.

  1. aeson Fast JSON parsing and encoding for Haskell
  2. lens-aeson Law-abiding lenses, traversals and prisms for aeson's JSON values

Compare aeson-pretty with the top 3