All integer types wider than 8 bits are sent in network byte order (big-endian, most significant bit first).
+The packet format follows the JSON specification. All integers, strings and structs are trivially converted between the protocol format and its JSON equivalense, except for those noted below.
+Each packet will have a “classId” field with an integer value which correspond to the packet ID specified in the protocol XML definition. This can be used for polymorphic parsing of the packets.
+All byte array fields will be Base64 encoded and packaged as a JSON string.
+Enumerations are encoded as JSON strings.
=== Protocol Generator ===