sending json values to websocket