Clean up JSON handling on SockJSServer.