ppx_protocol_conv

AuthorAnders Fugmann
Homepagehttps://github.com/andersfugmann/ppx-deriving-protocol
Issue Trackerhttps://github.com/andersfugmann/ppx-deriving-protocol/issues
MaintainerAnders Fugmann <anders@fugmann.net>
Dependencies
&base
jbuilder
msgpck
ppx_driver
ppx_metaquot
ppx_type_conv
xml-light
yojson
Availableocaml-version >= "4.03.0"
PublishedNov 23, 2017
Source [http] https://github.com/andersfugmann/ppx_protocol_conv/archive/0.9.0.tar.gz
7872cb84d648a7a5f57992211b5b9728
StatisticsInstalled 2 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ppx_protocol_conv/ppx_protocol_conv.0.9.0/opam

Serialization and de-serialization of ocaml types to/from json, msgpack and xml_light.

The syntax extension generates code to serialize and de-serialize types. The ppx itself does not contain any protocol specific code, but relies on 'drivers' that defines serialization and de-serialisation of basic types and structures.

The library provides the following drivers for serialization and deserialization:

  • json (Yojson.Safe.json)
  • xml_light (Xml.xml)
  • msgpack (Msgpck.t)