talira

lens-aeson

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

open sourceMITfree

lens-aeson is Edward Kmett's Haskell library of traversals and prisms for the aeson library's JSON Value type that obey the Traversal and Prism laws, so you can reach into and update nested JSON with lens combinators instead of pattern matching.

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

Alternatives

The same job

These do what lens-aeson does.

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

Compare lens-aeson with the top 3