jsonLibary
implemented onWindowClosing