methods to save and load hashes using JSON added