I’m happy to announce ppx_deriving_protocol v. 0.8
Ppx_deriving_protocol is a ppx to serialize and de-serialize ocaml data types. The ppx is generic in the sense that it allows users to plug in concrete protocol serializers and de-serializers without needing to modify the ppx or learning ocaml Ast.
The library include drivers for (de)serializing to/from json (Yojson.Safe.json) and xml_light (Xml.xml), but users of the library may choose to create their own.
The library currently handles most primitive types (int, string, bool, etc), lists, options, record and tuples types. The goal is to support most types, including sum-types.
More information can be found at https://github.com/andersfugmann/ppx-deriving-protocol