Adjust the backup and restore features to work with the `.json` format, including the `data-karyawan-backup.json` file. **To-do:** - [x] On backup, copy `data-karyawan.json` to `data-karyawan-backup.json`. - [x] On restore, read the content of `data-karyawan-backup.json` and `overwrite data-karyawan.json`. - [x] Add confirmation before restoring (because it will overwrite the main file). - [x] Show success or failure messages.
Adjust the backup and restore features to work with the
.jsonformat, including thedata-karyawan-backup.jsonfile.To-do:
data-karyawan.jsontodata-karyawan-backup.json.data-karyawan-backup.jsonandoverwrite data-karyawan.json.