There are several separate data structures in the commotion daemon currently, and for many of them it would be useful to have them translatable into JSON. For instance, we are moving to a JSON-based profile format, OpenWRT's new architecture uses JSON extensively, and we often use JSON as a wire format. Therefore, I propose to replace most or all of commotiond's data structures with a single, polymorphic format that stores its in-memory contents in a coherent, packed JSON binary format like msgpack so that it can be dumped over the network without copying or formatting.
There are several separate data structures in the commotion daemon currently, and for many of them it would be useful to have them translatable into JSON. For instance, we are moving to a JSON-based profile format, OpenWRT's new architecture uses JSON extensively, and we often use JSON as a wire format. Therefore, I propose to replace most or all of commotiond's data structures with a single, polymorphic format that stores its in-memory contents in a coherent, packed JSON binary format like msgpack so that it can be dumped over the network without copying or formatting.