public void send() { SendData sd = new SendData() { name = sendMsgText.text }; string jStr = JsonConvert.SerializeObject(sd); stompClient.SendMessage("/app/hello", jStr); }