Atdgen is a command-line program that takes as input type definitions in the ATD syntax and produces OCaml code suitable for data serialization and deserialization. Two data formats are currently supported for serialization, these are JSON and Biniou, a binary format which retains most of JSON's properties. Atdgen can also generate data validators derived from annotated type definitions (starting