opentechinstitute / commotiond

The system management daemon for the Commotion Wireless Project.
https://commotionwireless.net
GNU Affero General Public License v3.0
26 stars 21 forks source link

Update core object model to use JSON. #35

Closed jheretic closed 10 years ago

jheretic commented 10 years ago

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.

jheretic commented 10 years ago

This has been implemented in the plugins branch, soon to be merged to master.