redundant if{} removed
callJsonWs() code more compact+removed the return error