button to save json file