A ppx_deriving plugin that generates JSON serializers and deserializers for OCaml types using the Yojson library.
ppx_deriving_yojson is a PPX plugin for OCaml that automatically generates JSON serialization and deserialization functions from type definitions using the Yojson library. It eliminates boilerplate code for JSON handling while ensuring type safety and reducing manual errors. The plugin supports records, variants, tuples, and built-in types with customizable options via attributes.
OCaml developers who need to serialize and deserialize JSON data in their applications, particularly those working with complex type definitions or requiring strict type-safe data interchange.
Developers choose ppx_deriving_yojson because it automates JSON codec generation with fine-grained control through attributes, supports both strict and lenient deserialization modes, and integrates seamlessly with the ppx_deriving framework and Yojson library, reducing development time and errors.
A Yojson codec generator for OCaml.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.