Make websocket service deserialize json messages