Use mkws.$ to access to toJSON method, as some applications that use