Changes raw files from dict to json