# lens-aeson

> Law-abiding lenses, traversals and prisms for aeson's JSON values

Source: https://talira.ai/catalog/lens-aeson-mpbqg826
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / json](https://talira.ai/categories/developer-tools/parsing/json), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Edward Kmett](https://talira.ai/orgs/edward-kmett.md)

lens-aeson is Edward Kmett's Haskell library of traversals and prisms for the [aeson](https://talira.ai/catalog/aeson-6xjf51sz.md) library's JSON `Value` type that obey the Traversal and Prism laws, so you can reach into and update nested JSON with [lens](https://talira.ai/catalog/lens-w72sargm.md) combinators instead of pattern matching.

## Links

- GitHub: https://github.com/lens/lens-aeson

## Problems it solves

- read a field deep inside nested JSON in Haskell without pattern matching
- update a value inside an aeson JSON document with lenses
- query JSON with lens in Haskell

## Features

- traversals and prisms for aeson's Value type
- obeys the Traversal and Prism laws
- works with lens combinators

## Trust

Overall: 0.26 out of 1.
Signals: maintenance 0.27, adoption 0.35, momentum 0.04, community 0.52, backing 0.30, extensibility 0.00.

- 53 GitHub stars
- 19 contributors
- backed by Edward Kmett

Warnings:

- last commit 6 months ago

## Related

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

## Alternatives

- [aeson-pretty](https://talira.ai/catalog/aeson-pretty-pm5w2tw0.md): JSON pretty-printing for Haskell's aeson, plus a command-line JSON prettifier

## Sources

[^1]: https://github.com/lens/lens-aeson/blob/master/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/lens/lens-aeson/blob/master/lens-aeson.cabal (checked 29 Nov 2026)
