Bugfix: savejson should be always the same method

ref to https://github.com/Codiad/Codiad/issues/380