4 ms·
I started using Hjson for configuration files because I think it's just the right blend of JSON and YAML. Not too simple, not too complex. I have contributed to
by ftrobro 5y ago
I started using Hjson for configuration files because I think it's just the right blend of JSON and YAML. Not too simple, not too complex. I have contributed to the project by creating the C++ implementation of Hjson, and now also a template repository that showcases best practices for a C++ GUI application using Hjson configuration files, Qt 5 Widgets and CMake.
One of the main features of the example application is that configuration values can be manipulated by the app and then written back to the configuration file at application exit. Comments, key order and indentation are all preserved when the configuration file is rewritten.
The example application is tested on Windows, Mac and Ubuntu. Will myself use it as starting point for any new C++ GUI application I create.