aeson-better-errors: Better error messages when decoding JSON values.

[ json, library, mit, text, web ] [ Propose Tags ] [ Report a vulnerability ]

A small package which gives you the tools to build parsers to decode JSON values, and gives good error messages when parsing fails.

See also http://harry.garrood.me/blog/aeson-better-errors/.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.4.0.1, 0.5.0.0, 0.6.0.0, 0.7.0.0, 0.8.0, 0.9.0, 0.9.0.1, 0.9.1.0, 0.9.1.1, 0.9.1.2, 0.9.1.3, 0.9.1.4
Change log CHANGELOG.md
Dependencies aeson (>=0.7 && <1.6 || >=2.0), base (>=4.5 && <5), bytestring (>=0.11), dlist (>=1.0), mtl (>=2.2), scientific (>=0.3), text (>=2.0), transformers (>=0.5), transformers-compat (>=0.4), unordered-containers (>=0.2), vector (>=0.13), void (>=0.7) [details]
Tested with ghc ==9.12.4, ghc ==9.10.3, ghc ==9.8.4
License MIT
Author Harry Garrood
Maintainer harry@garrood.me
Uploaded by hdgarrood at 2026-05-22T11:12:38Z
Category Text, Web, JSON
Home page https://github.com/hdgarrood/aeson-better-errors
Source repo head: git clone https://github.com/hdgarrood/aeson-better-errors
Distributions Arch:0.9.1.3, Fedora:0.9.1.3, LTSHaskell:0.9.1.3, Stackage:0.9.1.3
Reverse Dependencies 12 direct, 13 indirect [details]
Downloads 18146 total (33 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-05-22 [all 1 reports]

Readme for aeson-better-errors-0.9.1.4

[back to package description]

aeson-better-errors

A small package which gives you tools to build parsers to decode JSON values, and gives good error messages when parsing fails.

Note that since this package was released, aeson's default error output has become much better. However, this library's error types provide more structure than aeson's. If your use case benefits from structured errors, this library is likely still a good choice, but otherwise, it's probably easier to use stock aeson.