Cleanup imports
Cleanup packet encoding for JsonProtocol