This adds exception handling to the code that reads and creates JSON objects in the program. The code now uses try-catch blocks to catch exceptions that may be thrown during the process of reading and writing JSON objects, to avoid unhandled failures that may interrupt the program's execution. With these changes, the program can now handle errors in a more robust way and offer a better user experience. When the user opened the file for the first time, it crashed to create the windows register (as soon as it happened or crashed, the register didn't exist yet).
I also added the fix to the debug compilation, which was not linking to c++ 20.
This adds exception handling to the code that reads and creates JSON objects in the program. The code now uses try-catch blocks to catch exceptions that may be thrown during the process of reading and writing JSON objects, to avoid unhandled failures that may interrupt the program's execution. With these changes, the program can now handle errors in a more robust way and offer a better user experience. When the user opened the file for the first time, it crashed to create the windows register (as soon as it happened or crashed, the register didn't exist yet).
I also added the fix to the debug compilation, which was not linking to c++ 20.