Fix integration with WS by sending info as json.