aeson-pretty: JSON pretty-printing library and command-line tool.

[ bsd3, json, library, pretty-printer, text, web ] [ Propose Tags ]

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

The library provides the 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. If you specify -flib-only like this

cabal install -flib-only aeson-pretty

the command-line tool will NOT be installed.


[Skip to Readme]

Modules

[Index]

Flags

Automatic Flags
NameDescriptionDefault
lib-only

Only build/install the library, NOT the command-line tool.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.2, 0.2.1, 0.3, 0.3.1, 0.4.0, 0.5.0, 0.5.1, 0.5.2, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.7, 0.7.1, 0.7.2, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7, 0.8.8, 0.8.9, 0.8.10
Dependencies aeson (>=0.7 && <1.6), aeson-pretty, attoparsec (>=0.10), base (>=4.5), base-compat (>=0.9 && <0.10), bytestring (>=0.9), cmdargs (>=0.7), scientific (>=0.3), text (>=0.11), unordered-containers (>=0.1.3.0), vector (>=0.9) [details]
License BSD-3-Clause
Copyright Copyright 2011 Falko Peters
Author Falko Peters <falko.peters@gmail.com>
Maintainer Falko Peters <falko.peters@gmail.com>
Revised Revision 1 made by sjakobi at 2021-10-11T09:19:27Z
Category Text, Web, JSON, Pretty Printer
Home page http://github.com/informatikr/aeson-pretty
Bug tracker http://github.com/informatikr/aeson-pretty/issues
Source repo head: git clone http://github.com/informatikr/aeson-pretty
Uploaded by FalkoPeters at 2017-06-14T09:55:49Z
Distributions Arch:0.8.10, Debian:0.8.8, Fedora:0.8.9, FreeBSD:0.7.2, LTSHaskell:0.8.10, NixOS:0.8.10, Stackage:0.8.10, openSUSE:0.8.10
Reverse Dependencies 143 direct, 424 indirect [details]
Executables aeson-pretty
Downloads 108878 total (383 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-06-14 [all 1 reports]

Readme for aeson-pretty-0.8.5

[back to package description]

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://github.com/informatikr/aeson-pretty.git

Authors

This library is written and maintained by Falko Peters, falko.peters@gmail.com.