Added saving to\loading of json data from files.