Scrap your hand-rolled aeson instances
Browse cluster: Haskell tooling and libraries →deriving-aeson is a Haskell package that provides customizable JSON serialization and deserialization for the aeson library using type-level configuration and the DerivingVia language extension. Rather than writing manual aeson instances, users can compose type-level modifiers like OmitNothingFields and FieldLabelModifier to control how Haskell record fields are transformed into JSON. The package includes built-in helpers such as StripPrefix, CamelToSnake, and various stock aliases like PrefixedSnake to reduce boilerplate further, and supports custom name transformations through a StringModifier typeclass.