Implementation of JSONWireProtocol in go