On Thu, 24 Sep 2009 14:02:14 +0200 blue storm wrote: > What about factorising json-static to allow adding arbitrary code > generators (represented as functions from (string * type_def) list to > a camlp4 Ast) at camlp4-time ? You would have a design similar to > type-conv, wich allows adding new generators without modifying > type-conv itself. That would be really useful for other kinds of serialization. I would be glad to add json-static-like interface for bencode and php_serialize. -- ygrek http://ygrek.org.ua